Creating data class access beans

Use the Add an Access Bean wizard to create a data class access bean.

Procedure

  1. In the Java™ EE perspective, click File > New > Other. Select EJB > Access Bean and click Next.
  2. Select Data class and click Next.
  3. 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.
  4. 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.
  5. Select the Interfaces to use.
  6. 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.
  7. 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.
  8. 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.


Feedback