My book describes how to deploy custom XPath to Oracle SOA Suite 11g. This blog post describes how to do the same thing in OSB 11g.
1. Copy your JAR file (e.g., customXPathFunctions.jar) to:
Application versions:

1. Copy your JAR file (e.g., customXPathFunctions.jar) to:
$MW_HOME/Oracle_OSB1/config/xpath-functions/2. Edit $MW_HOME/Oracle_OSB1/config/xpath-functions/osb-built-in.xml and add the properties of your particular XPath function (this is an example):
<xpf:function>3. Edit $MW_HOME/Oracle_OSB1/config/xpath-functions/osb-built-in.properties and add the following (this is an example):
<xpf:name>currentDateTime</xpf:name>
<xpf:comment>%FUNC_CURRENTDATETIME_COMMENT%</xpf:comment>
<xpf:namespaceURI>http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20</xpf:namespaceURI>
<xpf:className>oracle.tip.pc.services.functions.Xpath20</xpf:className>
<xpf:method>java.lang.String currentDateTime()</xpf:method>
<xpf:isDeterministic>false</xpf:isDeterministic>
<xpf:scope>Pipeline</xpf:scope>
<xpf:scope>SplitJoin</xpf:scope>
</xpf:function>
%FUNC_CURRENTDATETIME_COMMENT%=Returns current date time stamp. E.g. xp20:currentDateTime()4. Restart the OSB managed servers after saving the changes
Application versions:
- Oracle Service Bus (OSB) 11g (11.1.1.4+)

No comments:
Post a Comment