Deploying BC4J as an EJB Session Bean to Standalone OC4J or Oracle Application Server

When deploying a BC4J as an EJB session bean to the embedded OC4J server or to a standalone OC4J instance, you must ensure that the BC4J runtime libraries are installed and the deployment profile is created. The JDeveloper deployment wizards create all the necessary code to deploy business components as an EJB session bean.

Important: Before deploying your BC4J EJB application, ensure that you've met all the requirements in BC4J Prerequisites for OC4J Deployment.

To deploy BC4J as an EJB session bean to a standalone OC4J instance or Oracle Application Server via DCM:

  1. Make sure you've created a BC4J EJB deployment profile.
  2. In the Navigator, select the bc4j_deploy_profile_icon <ProjectNameEJB>.bcdeploy deployment profile you want to deploy.
  3. Right-click bc4j_deploy_profile_icon <ProjectNameEJB>.bcdeploy and choose from the available context menu options:
  4. The application files including the JAR and EAR file are packaged as a EJB JAR and deployed to the standalone OC4J instance or Oracle Application Server. JDeveloper also generates an EAR file which contains the EJB JAR before deploying to the selected standalone OC4J connection or Oracle Application Server via DCM connection you created.

Refer to the "Oracle Application Server Containers for J2EE User's Guide" Part Number B10322-01 provided with the Oracle Application Server documentation library for information on the deployed location of the application files including the JAR and EAR files.

Note: See also About Deploying on Oracle Application Server for information on deploying to an Oracle Application Server using the Oracle Enterprise Manager.

Deployment Options

You can also choose to deploy the subprofiles separately in the following ways:

  1. From the Navigator, click + to expand bc4j_deploy_profile_icon <ProjectNameEJB>.bcdeploy and to display the subprofiles:
  2. Right-click any of these subprofile icons to perform a variety of tasks including: Deploy to <application_server_connection>, Deploy to New Connection, Deploy to JAR file, Deploy to EAR file, display deployment profile Settings.

Related topics

About J2EE Applications and How They Are Packaged and Deployed
About Business Components for Java (BC4J) Deployment
Creating and Deploying a J2EE EJB Module (EJB JAR) to OC4J
Editing orion-ejb-jar.xml
Sample Business Components EJB Command-line Client Deployed to OC4J
Understanding the n-Tiered Business Components Architecture