Verify Instllation - Hitcount servlet

The HitCount servlet is another servlet that is part of the DefaultApplication and since the default application is installed on every application server, you can use it to either verify the install or at the later point of time to verify that the server is up and running.

Use the HitCount demonstration application to demonstrate how to increment a counter using a variety of methods, including:

  • A servlet instance variable

  • An HTTP session

  • An enterprise bean

You can instruct the servlet to execute any of these methods within a transaction that you can commit or roll back. If the transaction is committed, the counter is incremented. If the transaction is rolled back, the counter is not incremented.

No comments: