Testing with an enterprise bean

This article describes how to test your WebSphere configuration by using an enterprise bean and the Increment sample. These instructions assume that you have installed your WebSphere Application Server system and have tested the installation by using the instructions in the article Testing the installation.

Perform the following steps to test your WebSphere configuration using an enterprise bean:

  1. Ensure that you are logged into the machine with superuser (root) privileges.
  2. Ensure that the administrative console is running.
  3. Ensure that the default server (located under WebSphere Administrative Domain > Nodes > node_name > Application Servers) is running.
  4. Start a Web browser and specify the following URL:
    http://machine_name/webapp/examples/HitCount
    In this command, machine_name represents the name of the machine on which WebSphere is running. When the Web page opens, several selection options are displayed.
  5. Under the heading Generate hit count using, click the radio button for the Enterprise Java Bean option.
  6. Under the heading Transaction Type, click the radio button for the None option.
  7. Click Increment.

    If the number of hits is displayed, WebSphere is functioning properly.