Creating orion-ejb-jar.xml

Create the deployment descriptor orion-ejb-jar.xml if you want to support OC4J-specific configuration options for the EJBs. For example, you can modify the JNDI name of your EJB resources or include custom containers in orion-ejb-jar.xml.

Note: JDeveloper also automatically generates the orion-ejb-jar.xml file when you create a deployment profile for EJB JARs and deploy it to OC4J or Oracle Application Server.

To create orion-ejb-jar.xml:

  1. In the Navigator, select the project_iconproject to which you want to add an orion-ejb-jar.xml file.
  2. Choose File | New to open the New Gallery dialog.
  3. In the Categories tree, expand Business Tier and click Enterprise JavaBeans (EJB).
  4. In the Items list, double-click EJB Deployment Descriptor for OC4J (orion-ejb-jar.xml).
  5. The newly created file opens in the Code Editor. Edit this file to add the OC4J-specific configuration settings as appropriate.
  6. (Optional) If you ever want to edit this deployment descriptor, right-click the ejbjarxml orion-ejb-jar.xml node in the Navigator in the specified project. See Editing orion-ejb-jar.xml.

See also: For more information about EJBs, see the "Oracle Application Server Enterprise JavaBean Developer's Guide and Reference" which is provided with your Oracle Application Server documentation library. This guide provides information on developing EJBs in the OC4J environment.