Hi,
I would like to load a PCML file using a qualified path like "c:\ashish\MyTest.pcml",
i think this is not possible as of JTopen3.1, this would be nice feature if u are using JTopen in webapplication and do not want to add any classpath to application server.
i hope this feature is available in future
Ashish
Excellent idea! I will forward this on to our PCML developers.
The classloader parameter to the ProgramCallDocument constructor provides a good workaround for this. In the example given, the user wants to load a pcml file from c:\ashish. To do this, create an URLClassLoader with the given location in the path.
URL [] pcmlURLs = {new URL("file:///c://ashish")};
ClassLoader pcmlLoader = new URLClassLoader(pcmlURLs);
Then create the ProgramCallDocument using this loader.
ProgramCallDocument pcml = new ProgramCallDocument(sys,"MyTest", pcmlLoader);
When we added the XPCML component to the Toolbox, we added several new constructors for the ProgramCallDocument class. Some of those new constructors allow you to specify an InputStream from which to read the contents of the source PCML document.