Run the JSP Client

Walks you through the process of running the generated JSP client to access the new service.
Restriction: This topic applies to Windows environments (local development) only.

Now you are ready to run the JSP client in JBoss. When you run the JSP client, it takes a request from the end user and passes it to the EJB you generated. The EJB in turn passes the request to the enterprise server, ESDEMO. The original COBOL program runs on the enterprise server and processes the request, returning the results back to the JSP.

  1. From a command prompt, change to your JBoss installation's bin directory and enter standalone.
  2. When the JBoss startup script has completed, start a Web browser, and enter the following address:

    http://localhost:8080/ProgramEJB/AccessBooksMain.jsp

  3. Click Read.
  4. In the read_readop_input_lnk_b_stockno field, type 1111; then click Go!.

    The service returns the record that corresponds to the 1111 stock number.

  5. Experiment with running the Add, Next, and Delete options, providing the input required.

This completes the EJB Service Interface tutorial.

Note: If you plan to continue with another IMTK tutorial, stop the ESDEMO enterprise server instance before continuing.