Editing orion-ejb-jar.xml

The J2EE application deployment information is contained within XML configuration files. Each application type has its own configuration files. For an EJB JAR file deployed to Oracle Application Server Containers for J2EE (OC4J), two deployment descriptors are generated and used to define the EJB deployment descriptors:

ejb-jar.xml
Represents the standard J2EE EJB JAR deployment descriptor defined by Sun Microsystems. For more information about the EJB 2.0 Deployment Descriptors, you can download the specifications from:
http://www.javasoft.com/products/ejb/docs.html
orion-ejb-jar.xml
Represents the OC4J platform-specific deployment descriptors for EJBs and contains the deploy time information for an EJB JAR deployed to Oracle Application Server. If you have implementation-specific information, you can supplement the ejb-jar.xml with the orion-ejb-jar.xml file. This file is used to specify the initial deployment properties. After each deployment in JDeveloper, this deployment file is altered to reflect any newly added deployment descriptor information.
The orion-ejb-jar.xml file contains the following settings:

The orion-ejb-jar.dtd is contained in oc4j.jar. After you decompress this JAR, all DTDs for the OC4J server files are located in the META-INF directory.

To customize the EJB descriptors for OC4J deployment (orion-ejb-jar.xml):

  1. After you create your EJB with JDeveloper, both the ejb-jar.xml and orion-ejb-jar.xml files are automatically generated for you. They appear in the Navigator below your project.
  2. If you want to edit any of the standard J2EE deployment descriptors in the EJB Module Editor, right-click the ejbjarxml_node_icon ejb-jar.xml node in the Navigator below the specified project and choose Edit EJB Module. See Editing Deployment Descriptors.
  3. Modify any of the settings on this panel and click OK when you are finished.
  4. If you want to edit any of the OC4J platform-specific deployment descriptors, select orion-ejb.jar.xml in the Navigator below the specified project and choose Settings.
  5. Modify any of the settings on this panel and click OK when you are finished.
  6. When your EJB JAR module is deployed to a remote OC4J, both of these deployment descriptors are included in your <ejb-jar>.ear file.
    Note: For a local deployment to the embedded OC4J server, these deployment descriptors and the resulting classes are reside in the embedded OC4J location.
  7. Click Help on any deployment descriptor page for more information.

For more information about EJBs, see the "Oracle Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide" which is provided with your Oracle Application Server documentation library. This guide tells you what you need to know to develop EJBs in the OC4J environment.


Related topics

OC4J Deployment Application Directory Structure
Creating and Deploying a J2EE EJB Module (EJB JAR) to OC4J

Creating and Deploying a J2EE Enterprise Archive (EAR) to OC4J

Creating and Deploying an EJB JAR to WebLogic

Deploying BC4J as an EJB Session Bean to OC4J

Deploying BC4J as an EJB Session Bean to WebLogic