How to add custom java methods and call it from OSB XQuery:

1. Create a static java method :


2. Create a XML Config file that will be added later to the OSB installation folder, mine is: vrsbrazil.custom.function.xml



3. Wrap your java project into a jar file and copy the jar file and the xml you just created into the following folder: [OSB_HOME]/config/xpath-functions


4. Start or restart your weblogic environment;
5. That´s it! Next you see how it is shown on the sbconsole XQuery editor:




Here is the source code: Source

Thank you for reading!

Advertisements

5 thoughts on “How to add custom java methods and call it from OSB XQuery:”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s