Editing EJB access beans

Use the Edit an Access Bean wizard to change existing access beans.

Procedure

  1. In the Enterprise Explorer view, right-click the deployment descriptor for the EJB project that contains the enterprise bean and access bean you want to edit. Select Access Beans > Edit Access Beans
  2. Select the type of access bean you want to edit and click Next.
  3. In the Enterprise Bean field, make sure that the correct name of the enterprise bean is selected, then click Next.
  4. In the Access Bean field, select the access bean that you want to edit, then click Next.
  5. The properties you can edit on the following wizard page depends on what type of access bean you chose to edit:
    Access bean type Properties to edit
    Data class access bean
    1. Select the Interfaces to use.
    2. 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.
    3. Provide an Access bean name.
    4. Provide a Package Name for the access bean.
    5. Select the Attribute helpers for the access bean.
    Copy helper or Java bean wrapper access bean
    1. 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
    2. Select the Attribute helpers for the access bean (copy helper access beans only).
  6. Click Finish to update the access bean.

Feedback