Testing with an Enterprise Bean

After you install WebSphere Application Server, you can test an enterprise bean using the Inc sample:

  1. Start the application server. (At a command line, enter startServer.)
  2. Start your Web browser and specify for the URL address:
    http://your_server_name/webapp/examples/HitCount

    where your_server_name is localhost if the Application Server is on the local machine. If the server is on a remote machine, enter the short or fully qualified host name for the machine containing the administrative server.

    You should see a Web page with selection options.

  3. From the list Generate hit count using, select Enterprise JavaBean. From the list Transaction Type, select None.
  4. Click on Increment.

The number of hits should display.