Use the Create Session Bean
Facade wizard to create session facades and their associated static
SDOs for CMP entity beans.
About this task
For a description of the workbench's implementation of
session bean facades and SDOs, see Session
bean facades and SDOs.
When you use the
Create Session Bean Facade wizard to generate the facade, the following
code is generated for you:
- The session bean
- A root SDO for the primary CMP entity bean that is being contributed
to the facade
- An SDO for each CMP entity bean included in the facade
- An SDO for each container-managed relationship (CMR) entity selected
- An SDO client factory with methods for creating new instances
of each root SDO
The wizard generates Java™ code
that uses annotations for defining the bean and SDO implementations.
The annotations are then used by the EJB tools to generate the necessary
bean classes. You can modify the annotations to modify the session
bean facade and the SDOs.
See Annotations for session facades and
SDOs for reference information about the @ws.sdo
and @ws.sbf tag sets.
See Annotation-based
programming overview for general information about
working with annotations.
What to do next
The wizard generates the annotations
and the workbench generates the classes for the session bean facade
and the SDOs.