IBM Support

How to add 3rd party jars in MCF8.0 without using install3rdParty utility?

Question & Answer


Question

How to add 3rd party jars in MCF8.0 without using install3rdParty utility?

Answer

Recommendation for Agent:
Agent classpath is loaded by Sterling classloader based on the configuration file passed. All paths are absolute paths. A custom jar can be added using Install3rdparty.sh script. However this script also copies the jar into Sterling folders. If this is not desired, then you do the following


1.    Save the startIntegrationServer.sh file to a new file.
2.    Add the jar into java classpath after the bootstrapper.jar using –classpath as shown below. a.jar is the 3rd party  jar file.
${JAVA} -classpath /app/yandev17/Supply_Chain_Apps/jar/bootstrapper.jar:/app/custom/a.jar ${AGENT_JAVA_OPTS} com.sterlingcommerce.woodstock.noapp.NoAppLoader -class com.yantra.integration.adapter.IntegrationAdapter -f /app/yandev17/Supply_Chain_Apps/properties/AGENTDynamicclasspath.cfg -invokeargs "$1"


Recommendation for App:
Based on entry in APPDynamicclasspath, yantra.ear is built. The MANIFEST.MF is updated for yantraejb.jar file. The application.xml for app server lists yantraejb.jar as the ejb module. Hence the appserver loads this jar and using the MANIFEST.MF. The other jar files, since the classes are loaded into the application server classpath, the resources are available to the custom classes.

A custom jar can be added using Install3rdparty.sh script into APPDynamicclasspath. However this script also copies the jar into Sterling folders. If this is not desired, then you can add the jar directly into the application server JVM classpath.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Mapping and Translation","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2625

Document Information

Modified date:
16 June 2018

UID

swg21562742