Configure Tomcat

After you have configured HTTP server (powered by Apache) server instance, you must configure Tomcat to use the Xsockets tool in a Web browser.

  1. Under the Manage, select the HTTP server that you have created.
  2. Under the Server Properties in the left pane, select ASF Tomcat Setup Server Task.
  3. Select Enable servlets for this HTTP Server. This fills in a Workers definition file for you. Click Next.
  4. Accept the defaults on the Workers Definition page by clicking Next.
  5. On the URL to Worker Mapping page, click Add.
  6. In the URL(Mount Point) column, enter /xsock. Click Continue.
  7. Click Add.
  8. In the URL(Mount Point) column, enter /xsock/*. Click Continue.
  9. Click Next.
  10. On the In-Process Application Context Definition page, click Add.
  11. In the URL Path column, enter /xsock.
  12. In the Application Base Directory column, enter webapps/xsock.
  13. Click Continue. You can see a warning message that you need to configure more information.
  14. Click Configure under Configure Application.
  15. In the new browser window that opens, select 3 days in the Session Object timeout field.
    Note: This is the recommended value; however, you can specify another value for the Session Object timeout.
  16. Click Add to add Servlet definition and complete the following steps:
    1. For Servlet class name, enter com.ibm.iseries.xsocket.XSocketServlet.
    2. For URL patterns, enter /*.
    3. Set the Startup load sequence to 3.
    4. Click Continue.
    5. Click OK. This closes the browser window.
  17. In the main Tomcat setup window, click Next.
  18. Click Finish.
  19. Click OK. You have now completed Tomcat configuration for the Xsockets tool.