To use a jar file including the customized message generator, go to the customclasses directory and use the jar command to build a jar format from the com directory. Otherwise, you can use the directory path to set up your environment.
Sybase recommends that you use jar file
format for the customization.
Change to the customclasses directory:
cd /work/custom/customclasses
Build the jar file:
/usr/jdk141/bin/jar -cf mycustom.jar com
Add the path to mycustom.jar to your environment.
For EAServer:
Copy the jar file or the directory structure containing the Java classes created from the previous step to the java/classes directory for EAServer.
Run EAServer and connect to it from Jaguar Manager.
If you are using the jar file, go to the Servers/<your server> directory and select the Server Properties menu.Select the Java Classes tab and click Add to add the name of the jar file, such as mycustom.jar.
Click OK.
Shut down and restart EAServer to activate the environment changes.
For WebLogic:
Shut down the application server if it is running.
Modify $BEA_HOME/repra/bin/repra_env.sh to add the full path of mycustom.jar or the customclasses directory to the end of the CLASSPATH definition.
Do one of the following:
Enter:
CLASSPATH=/work/custom/customclasses:$CLASSPATH
Or, enter:
CLASSPATH=/work/custom/customclasses/mycustom.jar;$CLASSPATH
Start the WebLogic Server to activate the environment changes.