Working with Enterprise JavaBeans Components in the Model Project

This topic assumes you have followed the steps in Creating Business Services for the Model Project and chosen Enterprise JavaBeans as your business service technology.

To create web-based EJB applications:

  1. In the New Gallery, select the Enterprise JavaBeans node.
  2. In the Items list, select EJB Diagram or Entity Beans from Tables.
  3. Define your entity beans and optionally add business logic and custom finder methods.
  4. Create a session bean to implement the session facade design pattern.
  5. Analyze your client's data needs. Whether or not you have completely designed your client, you should now decide what data it needs to display and identify the relationships between that data. Add business service methods to your session bean and/or entity beans that will fulfill your clients' data needs.
  6. Generate data transfer objects for your entity beans. Note that separate objects are created for remote and local interfaces.
  7. Use the property inspector to specify the metadata for your data access object XML files. Often this takes the form of specifying the proper type for a collection.
  8. Register the EJB Session Bean with the Oracle ADF data controls in order to create a databound application client.
  9. Create a Struts page flow and create either JSP or UIX pages for your ViewController project.

Creating Business Services for the Model Project
About Modeling EJBs

 

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