You can package an ADF Business Components project as an EJB session bean, and subsequently deploy it as an EJB module to an application server.
EJB Components can also be deployed with a test client. See Packaging EJBs for Testing.
To package a Business Components project as an EJB session bean:
Create a Business Components EJB Session Bean deployment profile for your project. A profile may have already been created for your project. If you wish to deploy to multiple targets, create a separate profile for each.
Add a
ejb-jar.xml
deployment descriptor to your project, if it
is not already present.
Add target-specific deployment descriptors, if required, and not already present:
If the deployment target is Oracle Application Server or a
standalone OC4J server,
add an orion-ejb-jar.xml
deployment descriptor to your
project.
If the deployment target is a WebLogic application server,
add an weblogic-ejb-jar.xml
deployment descriptor to your
project.
If the deployment target is a JBoss application server, and you
want to support JBoss-specific configuration options for the
EJBs, add a
jboss.xml
deployment descriptor to your project.
Edit the deployment descriptor to move the Session Facade (BMT) EJB type from the A vailable to the Selected list.
Edit the application module:
In the Navigator, right-click the Business Components application module icon and choose Configurations.
Select the appropriate <YourApplicationModule>
OracleAS
configuration.
Select C opy. A copy of the configuration is created and displayed below the Names list.
Select this configuration and click E dit.
In the Connection Type list, choose JDBC DataSource.
Enter a DataSource Name. For
example: java:/OracleDS
Note:
About J2EE Deployment
About J2EE Archive Formats
About
Deployment Profiles
About
Deployment Descriptors
About ADF Business Components Deployment
Packaging J2EE Applications
Deploying J2EE Applications
Deploying Applications to J2EE Application Servers
Copyright © 1997, 2004, Oracle. All rights reserved.