Login  Register

Re: Orbeon Custom Processors

Posted by Alessandro Vernet on Dec 17, 2009; 12:07am
URL: https://discuss.orbeon.com/Orbeon-Custom-Processors-tp965063p965664.html

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:

http://www.saxonica.com/documentation8.9/extensibility/functions/staticmethods.html

Alex

On Dec 15, 2009, at 12: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! :-)

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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


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