Use the Add an Access Bean wizard
to create a Java™ bean wrapper
access bean.
Procedure
- In the Java EE perspective,
click . Select and click Next.
- Select Java bean wrapper and click Next.
- In the EJB Project field, make sure
that the correct name of the EJB project that contains the enterprise
bean for which you want to create an access bean appears.
- In the Enterprise Beans table, select
the enterprise bean for which you want to create an access bean, then
click Next.
Note: Enterprise beans
with only a local client view do not appear.
- In the Constructor method field,
make sure that the correct home interface method is selected. The
home interface method that you select is used to instantiate the enterprise
bean when the access bean is instantiated. See the following example
for how each option can be used:
- Select create if you want to use the zero argument constructor
to create a new instance
- Select findByPrimaryKey if you want the zero argument constructor
to find an existing instance
- Click Finish to generate the new Java bean wrapper.