All,
Note, if someone has replied I may have missed it because my ops mailing list must have expired. A forward of the answer if one exists would be nice. Thanks! :-) I'm trying to develop a custom processor that will call a suite of web services. I have the Java code used in another app and want to have an XForms app send an instance to the processor which in turn will pass the instance to the Java classes and then on to the proper web service. For the environment I have an Orbeon nightly build .war running under Tomcat. I say that because I'm not sure I have everything I need to get the Java code compiled. I read the documentation on the Java Processors but I have the following questions: 1. Do I have to have a /java directory somewhere (i.e. sourcepath= oxf./java) in the "resources" for the Java code to be compiled? 2. I have the files in a directory with the "apps" under the "resources" directory but it is not called /java. I cannot tell if the Java code is being compiled when I refresh the browser that executes my XForm. Thanks, Randy -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Randy,
On Tue, Dec 15, 2009 at 3:31 PM, Randy Smith <[hidden email]> wrote: > All, > Note, if someone has replied I may have missed it because my ops mailing > list must have expired. A forward of the answer if one exists would be nice. > Thanks! :-) You can always check Nabble to see if posts/answers went through: http://www.nabble.com/ObjectWeb-OPS---Users-f2537.html > I read the documentation on the Java Processors but I have the following > questions: > 1. Do I have to have a /java directory somewhere (i.e. sourcepath= > oxf./java) in the "resources" for the Java code to be compiled? The Java processor is meant to compile the Java files you provide. They don't need to be under a "java" directory. But you need to run Orbeon Forms with a JDK, not a JRE, so that the Java compiler is available. > 2. I have the files in a directory with the "apps" under the "resources" > directory but it is not called /java. I cannot tell if the Java code is > being compiled when I refresh the browser that executes my XForm. You might want to check if your Java processor at least is running. In your log4j.xml, try putting a category for class: org.orbeon.oxf.processor.JavaProcessor and set it to debug mode. -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Randy Smith-9
Randy, Also, if you already have the code you want to call in Java classes, you might want to just call it from XPath expressions in XForms. If you have static methods you can call, it is rather straightforward: Alex
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |