Deploying EJBs Built on SQLJ Files

If you have an EJB that is built on a SQLJ file, you must add two libraries to the EJB JAR deployment profile. JDeveloper auto-generates the EJB deployment descriptors, ejb-jar.xml or orion-ejb-jar.xml (OC4J deployments), when an EJB is created in JDeveloper.

To add SQLJ libraries to the deployment profile:

  1. Create a deployment profile for EJB modules (EJB JAR).
  2. In the Navigator, right-click your existing EJB_deployment_profile_icon <ejb_name>.deploy profile icon and choose Settings from the context menu.
  3. The EJB JAR Deployment Profile Settings panel appears. Configure the settings for each page as appropriate:
    1. General Page
    2. JAR Options Page
    3. Files Page
    4. Dependency Analyzer Page: If you want to repackage the contents of other libraries in your output JAR file, select the appropriate checkboxes. Also, select the appropriate radio button corresponding to how the libraries will be used.
    5. (Advanced) Filters Page: In the right pane, choose 1) Before Dependency Analysis and click Add.
    6. Add Dependency Analyzer Filter: in the Type dropdown list, choose Include Package Tree.
    7. Click Browse and navigate to your project's package.
    8. Select the common.* libraries and click OK.
    9. Similarly, add the server.* packages from your project.
    10. (Optional) Profile Dependencies: if the deployment profile depends on J2EE modules from another deployment profile.
    11. (Optional) If you want to pass command line parameters to any of the supported target connection types, click the appropriate node: Standalone OC4J, iAS Remote DCM, iAS Local DCM, or WebLogic.
  4. Click OK when you are done.
    The EJB_deployment_profile_icon <ejb_name>.deploy profile is updated with these changes.
  5. To deploy the J2EE EJB module, see Deploying EJB JARs.
  6. (Optional) If you want to edit either the EJB_deployment_profile_icon <ejb_name>.deploy profile or the corresponding deployment descriptors, ejb-jar.xml or orion-ejb-jar.xml right-click its icon in the Navigator and choose Settings.

Notes:


Related topics

About J2EE Applications and How They Are Packaged and Deployed
Editing orion-ejb-jar.xml
Deploying an EJB JAR to WebLogic
Deploying BC4J as an EJB Session Bean to OC4J
Deploying BC4J as an EJB Session Bean to WebLogic
Understanding the n-Tiered Business Components Architecture
Sample Business Components EJB Command-line Client Deployed to OC4J
Running an EJB
Debugging an EJB