I have followed various blog posts to build a user defined function and have successfully integrated it into jDeveloper.
I can now use my "user defined function" and my test composite builds without error or warning, suggesting to me that all
is good so far.
Obviously; if I don't add the function to my SOA server it's not going to do me any good. I find that I cannot follow the instructions
reproduced below because there is no oracle.soa.ext_11.1.1 folder in that location on my server. Can I just make the directory and
add the oracle.soa.ext.jar file (and where can I get one?) and then perform these steps or does the absence of that folder in my
installation indicate that there are problems with the server installation that need further attention?
The jar file containing the functions must be deployed to the WLS Servers hosting the SOA runtime.
Copy the .jar file containing the functions to the Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/
folder under the Fusion Middleware Home.
(instructions copied from blog at: https://blogs.oracle.com/bwb/resource/custom_xpath_functions/Creating_Custom_XPath_functions_with_JDeveloper_FullPost.ht…)
For example:
cp functions.jar /home/oracle/Oracle/Middleware/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/
After copying, the final step is to rebuild the registry classpath entries so the SOA runtime is aware of the new functions.
Open a command prompt and change the current directory to the oracle.soa.ext_11.1.1 directory ,
then execute the build.xml file in the oracle.soa.ext_11.1.1 folder using Ant.
This task must be repeated only if the jar is renamed in the future.
Restart the WLS Server that is hosting the SOA Suite Partition so that the new classes are loaded.
Note:
If Ant is unavailable, the configuration can be done manually as follows:
Extract the META-INF/MANIFEST.MF file from the oracle.soa.ext.jar file.
Update the classpath entry in the MANIFEST.MF file to include the name of the new function jar
For example Class-Path: myFunctions.jar classes/
Update the jar file with the modified META-INF/MANIFEST.MF file.