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:
-
In the New Gallery, select the Enterprise
JavaBeans node.
-
In the Items
list, select EJB Diagram or
Entity Beans from Tables.
-
If you are comfortable with UML modeling, we recommend selecting
EJB Diagram, which provides a graphical interface for designing your
EJBs. You can drag tables onto this diagram to create EJBs. For
more information, see the Related Topics list.
-
Otherwise, you can select Entity Beans from
Tables to create CMP entity beans using a wizard.
-
Define
your entity beans and optionally add business logic and custom
finder methods.
-
Create a session bean to
implement the session facade design pattern.
-
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.
-
Generate data transfer objects
for your entity beans. Note that separate objects are created for remote and
local interfaces.
-
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.
-
Register the EJB
Session Bean with the Oracle ADF data controls in order to create
a databound application client.
-
Create a Struts page flow
and create either JSP or UIX
pages for your ViewController project.
Related topics
Creating Business Services for
the Model Project
About Modeling EJBs
Copyright © 1997, 2004, Oracle.
All rights reserved.