Creating iSeries program call Java bean and PCML file

Use the second page of the Program Call wizard to specify the location where the Java bean and PCML file are to be generated.

  1. Click Browse next to the Folder field to select an existing folder where you want the Java bean and PCML file to be generated.
  2. Click Browse next to the Package field to select an existing package. If you type a package name that does not exist, the Program Call wizard creates it for you. The default is the package that you selected from the workbench when you started the Program Call wizard.
  3. Specify or select the name that you want to give to the PCML file generated by the wizard in PCML file name. The default name is the Java bean name of the first program that you defined.
  4. The Services check box is selected by default.
    • If you want a Java bean, clear the Services check box and select Java application. The generated Java beans can be used in any Java code. This includes any standalone Java application or Java components of Web applications such as servlets and JSP pages. The wizard generates a Java bean for each program defined.
    • If you want a Services bean, leave the Services check box selected. The generated Java beans can be used by the Web Services wizard to create a Web service, or can be used by WebSphere Integration Developer to create an Enterprise Service. As of Version 5.1, you need to migrate your PCML file, Java bean, and runtime configuration file into the WebSphere Integration Developer environment.
  5. Click Next to proceed to the next page of the Program Call wizard and choose whether to generate a runtime configuration file.

The Program Call wizard generates three classes. One of the classes is a Java bean whose name ends with the word Services. The other two classes have names ending with Input or Result. These two classes are required by the Web Services Java bean class. If you want to create a Web service using the Web Services wizard, you have to use the class whose name ends with the word Services as input to the Web Services wizard.

The wizard also creates a PCML file and a .mpcml file. You do not need the .mpcml file when you deploy your application or services. It is used only at design time in the workbench. Also, a .config file is created, if you advance to the third page of the wizard and specify that you want the settings saved.

If the folder that you specified belongs to a Java project, the class path of the project is updated to include the following six JAR files. When you deploy your Java application, ensure that these JAR files are set in your application class path.

If the folder that you specified belongs to a Web project, jt400.jar, iwdtrt.jar, eablib.jar , recjava.jar , and ccf.jar are copied to the lib folder of your Web project.

Related concepts
Tools for Web services development
Related tasks
Configuring your iSeries Java run time