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:
- Create a deployment profile for EJB
modules (EJB JAR).
- In the Navigator, right-click your existing
<ejb_name>.deploy profile icon
and choose Settings from the context menu.
- The EJB JAR Deployment Profile Settings panel appears. Configure the settings
for each page as appropriate:
- General Page
- JAR Options Page
- Files Page
- 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.
- (Advanced) Filters Page: In
the right pane, choose 1) Before Dependency Analysis
and click Add.
- Add Dependency Analyzer Filter: in the Type
dropdown list, choose Include Package Tree.
- Click Browse and navigate to your
project's package.
- Select the
common.*
libraries and click OK.
- Similarly, add the
server.*
packages from your project.
- (Optional) Profile
Dependencies: if the deployment
profile depends on J2EE modules from another deployment profile.
- (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.
- Click OK when you are done.
The
<ejb_name>.deploy profile is updated
with these changes.
- To deploy the J2EE EJB module, see Deploying
EJB JARs.
- (Optional) If you want to edit either the
<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:
- If you require further assistance for any field on any page, click Help.
- The EJB Container in OC4J provides full support for EJB 2.0.or more information about EJB 2.0,
you can download the specifications from:
http://www.javasoft.com/products/ejb/docs.html
- Make sure that the EJB deployment descriptors are located inside the EJB
JAR
META-INF/ejb-jar.xml
.
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