Menu

#156 Load PCML file with qualified path

PCML
closed-fixed
None
7
2004-06-01
2002-06-19
Anonymous
No

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

Discussion

  • John Eberhard

    John Eberhard - 2002-06-26

    Excellent idea! I will forward this on to our PCML developers.

     
  • John Eberhard

    John Eberhard - 2002-06-26
    • priority: 5 --> 7
    • assigned_to: nobody --> bknotts
     
  • Nobody/Anonymous

    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);

     
  • John Eberhard

    John Eberhard - 2004-05-21
    • assigned_to: bknotts --> jt400admin
     
  • John Eberhard

    John Eberhard - 2004-06-01
    • status: open --> closed-fixed
     
  • John Eberhard

    John Eberhard - 2004-06-01

    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.

     

Log in to post a comment.