This recipe explains how to add custom classes to the Oracle SOA Suite server. Similar to adding the third-party libraries, the Oracle SOA Suite server provides a convenient placeholder for classes.
We will add classes that take care of loan calculation in this recipe. The same recipe can also be used for the addition of other Java class files:
LoanInfo.class
and LoanCalc.class
) to the extension folder.The following screenshot shows the tree structure of the extension
directory after copying the class files:
As we saw in this recipe, the simple classes can be copied directly to the extension
directory. That way, there is no need to prepare a JAR archive or go through any additional steps. Also, there is no need to copy the complete class structure when one class was changed.
As opposed to adding the JAR files, we can leave out one step. That step is rebuilding the extension repository JAR with ant
, because the classes directory is included into the manifest file by default. Remember that we have to rebuild the extension repository JAR (oracle.soa.ext.jar
) in the Adding third-party libraries to the SOA Suite server recipe.