Generate and Deploy a JSP Client

Provides you with instructions that guide you through the process of generating a JSP client for the AccessBooks Java interface, and deploying it to your JBoss application server.
Restriction: This topic applies only when the Enterprise Server feature is enabled.

You generate a JSP client from the service interface file that contains your defined operations, and use this generated client to access the deployed Java interface. For an EJB to access a COBOL service running on an enterprise server, you must have the EJB and a Micro Focus resource adapter running on an application server.

Generate a JSP client

Visual COBOL requires that client applications running on UNIX systems are built using the Single Executable File target type. When the main project uses a target type other than Single Executable File as does the ProgramEJB project (which uses the All Native Library Files target type), you must generate the client applications into a separate project.

  1. From the COBOL Explorer, right-click the AccessBooks Web Service; then select Generate Client from the context menu.
  2. On the Generate Client dialog box, click Create a new COBOL project.
  3. On the Generate Client dialog box, type ProgramEJBClient into the Project Name field, and then click OK.
  4. Click OK to generate the client.
    Note: The Single Executable File target type is the default build configuration setting in the new project. To confirm this:
    1. In the COBOL Explorer, right-click the ProgramEJBClient project; then select Properties from the context menu.
    2. Expand Micro Focus > Build Configurations; then click Link.

      The Target Type field should be set to Single Executable File.

    3. Click Close.
Note: If the Console is not visible:
  1. Click the Console tab.
  2. On the icon bar, click the down arrow associated with Display Selected Console Display Selected Console.
  3. Click Service Interfaces Console.

Deploy the JSP client and resource adapter to JBoss

Before you can run your JSP client, you must first deploy the resource adapter to JBoss.