Creating Java bean wrapper access beans

Use the Add an Access Bean wizard to create a Java™ bean wrapper access bean.

Procedure

  1. In the Java EE perspective, click File > New > Other. Select EJB > Access Bean and click Next.
  2. Select Java bean wrapper and click Next.
  3. 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.
  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 do not appear.
  5. 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
  6. Click Finish to generate the new Java bean wrapper.

Feedback