Deploying BC4J as an EJB Session Bean to WebLogic
When deploying a BC4J as an EJB session bean to a BEA WebLogic 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 WebLogic Deployment.
To deploy BC4J as an EJB session bean to a WebLogic
instance:
- Make sure you've created a BC4J EJB deployment
profile.
- In the Navigator, select the
<ProjectNameEJB>.bcdeploy
deployment profile you want to deploy.
- Right-click
<ProjectNameEJB>.bcdeploy
and choose from the available context menu options:
- Deploy to <application_server_connection>:
the EJB module is packaged as an EJB JAR. JDeveloper also generates an
EAR file which contains the EJB JAR before deploying to the selected WebLogic
connection you created earlier.
- Deploy to New Connection: Launches
the Connection Wizard which lets you create a new application server connection.
- Deploy to JAR file: the EJB module
is packaged as a JAR file and saved to the local directory or mapped network.
- Deploy to EAR file: the EJB module
is packaged as an EAR file and saved to the local directory or mapped
network drive you specified in the deployment profile.
- The application files including the JAR and EAR file are packaged as a EJB
JAR and deployed to the WebLogic application server instance. JDeveloper also
generates an EAR file which contains the EJB JAR before deploying to the selected
connection.
Deployment Options
You can also choose to deploy the subprofiles separately in the following ways:
- From the Navigator, click + to expand
<ProjectNameEJB>.bcdeploy and
to display the subprofiles:
<ProjectNameCommon>.deploy: files shared between
the business components and the client
<ProjectNameEJB>.deploy:
contains the business logic in the EJB session bean
<ProjectNameMiddleTier>.deploy: contains the class
and XML files
- 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
- Deploying EJB JARs to WebLogic
- Editing weblogic-ejb-jar.xml
- Loading BC4J Runtime Libraries to WebLogic
- Sample Client Code for an EJB Client for WebLogic
- Understanding the n-Tiered
Business Components Architecture