Default Application



Search Tips   |   Advanced Search




The IBM WAS provides a default configuration that allows administrators to easily verify that the Application Server is running. When the product is installed, it includes an appserver called server1 and an enterprise application called Default Application.

Default Application contains a Web Module called DefaultWebApplication and an enterprise bean JAR file called Increment. The Default Application provides a number of servlets, described below.

For additional code examples, visit the Samples Gallery...




Use the Snoop servlet to retrieve information about a servlet request. This servlet returns the following information...

The Snoop servlet includes security configuration so that when WebSphere Security is enabled, clients must supply a user ID and password to execute the servlet.

The URL for the Snoop servlet is:




Use the HelloHTML pervasive servlet to exercise the PageList support provided by the WebSphere Web container. This servlet extends the PageListServlet, which provides APIs that allow servlets to call other Web resources by name or, when using the Client Type detection support, by type.

You can invoke the Hello servlet from an HTML browser, speech client, or most Wireless Application Protocol (WAP) enabled browsers using the URL:




Use the HitCount Demonstration application to demonstrate incrementing a counter using a variety of methods, including...

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

The enterprise bean method uses a Container- Managed Persistence enterprise bean that persists the counter value to a Cloudscape database. This enterprise bean is configured to use the Default Datasource, which is set to the DefaultDB database.

When using the enterprise bean method, you can instruct the servlet to look up the enterprise bean, either in the WebSphere global namespace, or in the namespace local to the application.

The URL for the HitCount application is:



See Also

Class loaders
Webapplications: Resources for learning