# JacORB - WebLogic Integration mini HOW-TO

This HOW-TO describes how you can use JacORB classes from within WebLogic 8.1 in a Windows environment. This technique may work on other versions and platforms but has not been tested yet. Please let us know if this works for you and what, if any, differences you found.

Essentially, the classpath plus some JacORB specific environment variables must be set.

1. Locate the batch file that launches your instance of WebLogic, and open this file for editing. Mine is called startWebLogic.cmd
2. Ensure that the JACORB_HOME environment variable is set to the location of the JacORB home directory in WebLogic startup file.

       set JACORB_HOME=C:\jacorb_2_2_1

3. Startup batch files for WebLogic use an environment variable called JAVA_OPTIONS that we want to use. Add the following lines to your startup batch file to enable JacORB.

       set JAVA_OPTIONS=%JAVA_OPTIONS%
       -Xbootclasspath:%JACORB_HOME%\lib\jacorb.jar;%JACORB_HOME%\lib\concurrent-1.3.2.jar;%JACORB_HOME%\lib\avalon-framework-4.1.5.jar;%JACORB_HOME%\lib\antlr-2.7.2.jar;%JACORB_HOME%\lib\idl.jar;%JACORB_HOME%\lib\logkit-1.2.jar;%JAVA_HOME%\jre\lib\rt.jar
       set JAVA_OPTIONS=%JAVA_OPTIONS%
       -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB set
       JAVA_OPTIONS=%JAVA_OPTIONS%
       -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton set
       JAVA_OPTIONS=%JAVA_OPTIONS% -Djacorb.home=%JACORB_HOME% set
       JAVA_OPTIONS=%JAVA_OPTIONS% -server echo JAVA_OPTIONS=%JAVA_OPTIONS%

4. Restart WebLogic using your new and improved script.

Please send your comments and bugs in this script to Mike Olivieri