Run the JSP Client

Walks you through the process of running the generated JSP client to access the AccessBooks Java interface.

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. Start a command prompt as an administrator (Windows) or (UNIX) .
  2. Change to your %JBOSS_HOME%\bin (Windows) or (UNIX) directory, and enter standalone.
  3. When the JBoss startup script has completed, start a Web browser, and enter the following address:

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

  4. Click Read.
  5. 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.

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

This concludes the tutorial.