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
- Select . Click Next.
- 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.
- 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.
- In the Matching entries field,
select the name of the J2C bean you want to use, and click OK, and click Next.
- 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.
- 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.
- 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.
- Click Finish. The required tags
are added to the J2C bean implementation and the corresponding command
beans are generated.