Appendix A. The Web Console

Throughout this guide, we have been using to the JMX Console web application to inspect and manage the server. However there is another management console application which offers extended functionality such as live graphs, alerts, and statistics on deployed J2EE components such as EJBs and servlets.

The URL for the web console is http://localhost:8080/web-console. You will get more out of it if you have some applications deployed and been running them to accumulate some statistics. For example, with the Duke’s Bank application deployed you’ll see something like Figure A.1, “Web Admin. Console Showing Stateful Session Bean Statistics. ”, which shows the statistics for the AccountController stateful session bean. The invocation statistics are self-explanatory; you have a list of methods and the max, min, average time per invocation as well as the total time spent in the method and the number of invocations. The number of concurrent invocations is shown underneath the table of methods.

The information in the Bean Statistics section shows information on the bean instance numbers. The details vary depending on the type of bean and the possible values are shown in Table A.1, “Bean Statistics Data”. For a complete description of the bean states (method-ready, pooled, ready etc.) see the EJB specification.

Web Admin. Console Showing Stateful Session Bean Statistics.

Figure A.1. Web Admin. Console Showing Stateful Session Bean Statistics.

Table A.1. Bean Statistics Data

Stateless Session BeanDescription
MethodReadyCount Number of beans in the method-ready state.
CreateCount Number of times the create method has been called.
RemoveCount Number of times the remove method has been called.
Stateful Session Bean 
MethodReadyCount The number of beans in the method-ready state.
CreateCount The number of beans that have been created
RemoveCount[a] The number of beans that have been explicitly removed.
PassiveCount The number of beans that have been passivated by the container.
Entity Bean 
CreateCount Number of entities that have been created by calls to create method.
RemoveCount Number of entities that have been removed (deleted) by calling remove method.
ReadyCount Number of beans that are in the ready state, assigned an entity object and ready to handle invocations.
PooledCount Number of beans in the pooled state. JBoss doesn’t use entity instance pooling so this will be zero.

[a] Note that the RemoveCount may not equal CreateCount over time as the beans may be passivated and then time-out with the remove method being called.

The web-console isn’t a pure web application but uses a Java applet for the tree view on the left-hand side. So you’ll need to have the Java plugin installed and have Java enabled to make it work.