Creating Oracle ADF Data Controls for EJB Components

If you use EJB technology as your business service technology, model information will be exposed to the view and controller layer through ADF data control interfaces implemented by thin, Oracle-provided adapter classes.

To create adapter classes and data controls:

  1. In the navigator, select the Model project which contains the model objects you want to expose to the application client:
  2. In the model project, right-click a stateless session bean and choose Create Data Control.

    OR:

    Drag the session bean from the Application Navigator onto the Data Control

    Note: You can create data controls only from stateless session beans.

    Palette to create the data controls.
  3. If your bean defines attributes or methods that return a Collection type, you must specify the return type for the data control.

JDeveloper adds the data control definition file (DataControls.dcx ) to the model project. The .dcx file identifies the Oracle ADF model layer adapter classes that facilitate the interaction between the client and the available business services.

To view the business services you have registered for use with your client application:


Registering Business Services with Oracle ADF Data Controls
About the Oracle ADF Data Controls for EJB Components
About the Data Control Palette

 

Copyright © 1997, 2004, Oracle. All rights reserved.