Creating data class access beans

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

To create a data class access bean:

  1. In the J2EE perspective, select File > New > Other > EJB > Access Bean. The Add an Access Bean wizard opens.
  2. Select the Data class radio button, then click Next.
  3. In the EJB Module (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 field, 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 will not appear.
  5. Select the Interfaces to use: remote, local, or both
  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 will be generated for beans that only have a local client view.
  7. Provide a name for the access bean.
  8. Provide a Package name for the access bean.
  9. Select the Attribute helpers for the access bean.
  10. 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 will not be recognized and the wizard will not display it. This is a requirement of the wizard, not an Enterprise JavaBeans requirement.


Feedback