Setting Up the Classpath to Run BC4J Applications on VisiBroker

After creating and invoking a Business Components for Java (BC4J) deployment profile, you must set up the classpath to run the CORBA server object on VisiBroker. You must also copy a batch file that will help you start your VisiBroker server class.

Note: Ensure that you have VisiBroker already installed before deploying to it. The location where VisiBroker is installed becomes your target directory. For more information about CORBA Objects on VisiBroker:
http://www.inprise.com/.

To set up the classpath to run BC4J applications on VisiBroker:

  1. Right-click the .jpx file node of a Business Components Package containing at least one Application Module, and select Create Business Component Deployment Profile.
  2. Follow the wizard instructions to create a Corba Server for Visibroker deployment file.
  3. Right-click the deployment file node <Project_name>Visigenic.bcdeploy, and select Deploy. The deployment log displays messages similar to these:
    
    Running dependency analysis...
    Wrote JAR file to C:\904.1087\jdev\mywork\Workspace1\Project3\deploy\Project3VisigenicCommon.jar
    Running dependency analysis...
    Wrote JAR file to C:\904.1087\jdev\mywork\Workspace1\Project3\deploy\Mypackage2ModuleVisigenicServer.jar
    Elapsed time for deployment:  8 seconds
    ----  Deployment finished.  ----    Dec 3, 2002 10:30:43 AM
  4. From the directory location listed in the log messages, copy the following files to your VisiBroker target directory:
  5. From your JDeveloper installation directory in the <jdev_install>/BC4J/lib directory, select to copy the following files to your VisiBroker target directory:

  6. From your JDeveloper installation directory in <jdev_install>/BC4J/jlib directory, select to copy the following files to your VisiBroker target directory:
  7. From your JDeveloper installation directory in <jdev_install>/ord/jlib directory, select to copy the following files to your VisiBroker target directory:
  8. From your JDeveloper installation directory in <jdev_install>/j2ee/home/lib directory, select to copy jndi.jar to your VisiBroker target directory:
  9. From your JDeveloper installation directory in <jdev_install>/jdbc/lib directory, select to copy the classes12.jar to your VisiBroker target directory.
  10. From your JDeveloper installation directory in <jdev_install>/lib, select to copy xmlparserv2.jar to your VisiBroker target directory.
  11. From your JDeveloper installation directory in <jdev_install>/vbroker4/lib, select to copy vbjorb.jar to your VisiBroker target directory.
  12. From your JDeveloper installation directory in <jdev_install>/sqlj/lib, select to copy runtime12.jar to your VisiBroker target directory.
  13. From your JDeveloper installation directory in <jdev_install>/BC4J/bin directory, select to copy startCORBA.bat your VisiBroker target directory.

Related Topics

Starting CORBA Objects on VisiBroker

Starting a Business Components Project Using Bind Mode

Starting a Business Components Application Using the Naming Service