Use the Add an Access Bean wizard
to create a data class access bean.
Procedure
- In the Java™ EE perspective,
click . Select and click Next.
- Select Data class and click Next.
- In the EJB Project field, make sure
that the correct name of the EJB project appears that contains the
enterprise bean for which you want to create an access bean.
- 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 does not appear.
- Select the Interfaces to use.
- Provide a Factory package name for
the data class access bean. If you leave this field blank, the default Java package is used. No factory
class is generated for beans that only have a local client view.
- Also provide the following:
- Provide an Access bean name.
- Provide a Package Name for the access
bean.
- Select the Attribute helpers for the
access bean.
- Click Finish to generate the new
data class access bean.
To identify the enterprise
bean properties that are selectable for the access bean, the wizard
performs introspection of the enterprise bean using the Enterprise JavaBeans specification rules
for detecting getter and setter accessors. If either the getter or
setter method in the enterprise bean class throws an exception, the
property is not recognized and the wizard does not display it. This
is a requirement of the wizard, not an Enterprise JavaBeans requirement.