Packaging ADF Business Components as an EJB Session Bean

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:

  1. 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.

  2. Add a ejb-jar.xml deployment descriptor to your project, if it is not already present.

  3. Add target-specific deployment descriptors, if required, and not already present:

  4. Edit the deployment descriptor to move the Session Facade (BMT) EJB type from the A vailable to the Selected list.

  5. Edit the application module:

    1. In the Navigator, right-click the Business Components application module icon and choose Configurations.

    2. Select the appropriate <YourApplicationModule> OracleAS configuration.

    3. Select C opy. A copy of the configuration is created and displayed below the Names list.

    4. Select this configuration and click E dit.

    5. In the Connection Type list, choose JDBC DataSource.

    6. 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.