-
Book Overview & Buying
-
Table Of Contents
EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
As we already discussed, it's always a good practice to create a session bean façade for an entity bean. This is done to ensure that the entity bean is not directly accessed by a client. To create a session bean, follow the given steps:
1. Select the EJB3Model project and select File | New.
2. In the New Gallery window, select Categories | Business Tier | EJB and Items | Session EJB. Click on OK.
3. Specify the EJB Name as CatalogSessionEJB. Select Session Type as Stateless and Transaction Type as Container. Specify a mapped name (EJB3-SessionEJB). The Generate Session Façade Methods checkbox is selected by default. The Entity Implementation is JPA Entities by default. The persistence unit is em. Click on Next.
4. Select the default JPA Entity Methods to create and click on Next.
5. Specify the Bean Class (model. CatalogSessionEJBBean) and click on Next.
6. Select the EJB business interface to implement. Select the Implement a Remote Interface checkbox, and specify...
Change the font size
Change margin width
Change background colour