Deploying BC4J Web Applications to Standalone OC4J or Oracle Application Server

Important: Before deploying your BC4J web application, ensure that you've met all the requirements in BC4J Setup and Deployment Prerequisites.

To deploy BC4J web applications to a standalone OC4J or Oracle Application Server instance:

  1. If not already done, create a deployment profile for BC4J web applications.

    Important: When creating a deployment profile for BC4J web applications, if you chose to deploy the business logic to the web module, the business component files are also added to the web module. However, if you chose to deploy the business logic as an EJB session bean, then the web module only contains the client application files.
    In both cases, the client application files including the WAR and EAR files are included in the web module and deployed to the target OC4J or Oracle Application Server instance.

  2. If not already done, create an application server connection to the target application server before deploying the WAR file.
  3. (Optional) If you want to edit either the deployment profile <myappwar>.deploy or the corresponding deployment descriptor settings in web.xml, right-click the name of the file you wish to edit and choose Settings. Alternatively, you can choose XML Editor to edit web.xml or Open Externally to edit <myappwar>.deploy directly if you are knowledgeable about the format.
  4. (Optional) If you want to create another WAR deployment profile in this project, right-click webxmlicon web.xml and choose Create WAR Deployment Profile.
  5. To deploy the client application project to the target application server, right-click WAR_dep_profile_icon <myappwar>.deploy and choose Deploy to <application_server_connection>. See "Deployment Options" below for more information.
  6. You can access the web application in a browser by entering its application URL. For example:
    http://<hostname>:<portnumber>/<virtual_path>/<sitename>/main.html
    where virtual_path is the context root you specified in the deployment profile.

Deployment Options

JDeveloper lets you deploy in the following locations:
  1. From the Navigator, select and right-click WAR_dep_profile_icon <myappwar>.deploy.
  2. You can also choose from the following deployment options in the context menu:

Notes:


Related topics

Developing Web Applications (J2EE Web Modules)
About J2EE Applications and How They Are Packaged and Deployed
Configuring Your Project to Use the Embedded OC4J Server
About Business Components for Java (BC4J) Deployment
Editing Deployment Descriptors
Understanding the n-Tiered Business Components Architecture