Tuesday, June 28, 2011

OSB Custom XPath Functions

I have followed the instructions here:

http://download.oracle.com/docs/cd/E21764_01/doc.1111/e15866/custom_xpath.htm


added an extra category and function to the  $ORACLE_HOME/Oracle_OSB1/config/xpath-functions/osb-built-in.xml  file,
in the same $ORACLE_HOME/Oracle_OSB1/config/xpath-functions/ directory I put the JAR with the function

the good news is that it really works! I find these custom XPath function a powerful way to carry out message manipulations too complex to do in XQuery.

Java rules! Use the Force!



to check if anything went wrong, grep for something like:
CustomXPathFunctionManager: Failed to register custom XPath function

also:
make sure no blank spaces are in the XML file

for arrays, make sure you use the notation [Ljava.lang.String;

No comments: