Generating Command Beans

Use the command bean creation wizard to create a J2C command bean in your project.

Before you begin

You need to have a J2C bean implementation class in your project before you can create a command bean.

Procedure

  1. Select File > New > Other > J2C > Command Bean Creation. Click Next.
  2. On the J2C Java™ bean selection page, the J2C bean implementation field might be populated with the J2C bean implementation that you want to use (for example, /CustomerProj/JavaSource/sample/cics/CustomerImpl.java). If the J2C bean implementation field is empty, or if you want to select a different implementation, click Browse.
    1. In the Find J2C Bean page, in the Select entries field, type the name of the J2C bean implementation you want to use. You can also type ? to see all the J2C beans available.
    2. In the Matching entries field, select the name of the J2C bean you want to use, and click OK, and click Next.
  3. In the Command Bean Creation page, in the Select methods whose functionality you want to expose as Command Beans, select the methods that you want to expose.
    1. By default, the class name of the command bean is the name of the selected method, with the initial letter capitalized. For example, getCustomer() method becomes the GetCustomer class. If you want to change the class name, highlight the name and type a new name.
  4. To change the names of the parameters, select the input or output name and type in alternative name. Similarly for output name, select it and type in a new name.
  5. Click Finish. The required tags are added to the J2C bean implementation and the corresponding command beans are generated.

Feedback