Chapter 6: Advanced Tomcat Features Figure 6-7: Lifecycle

Chapter 6: Advanced Tomcat Features Figure 6-7: Lifecycle listener created role-type MBeans Note that you will have to authenticate to use the managerapplication. This means that the manager role must be added to the tomcat-users.xmlfile (either manually or via the adminapplication) for the manager application user. In this test case, the manager role was added to the default Tomcat user. (Chapter 8 discusses the managerapplication.) Removing Default Lifecycle Listeners Next, the lifecycle listeners will be removed. As a result, it is expected that the dynamically created MBeans will no longer be available. To try this out, first stop Tomcat 6. Edit the server.xmlfile by hand and comment out the two elements. The following code shows the elements commented out: –> This means that no lifecycle listener will be configured for the server component, and no role-typed MBeans will be created. Start Tomcat 6 and try the previous proxy URL again. This time, no role-typed MBean will be found, as shown in Figure 6-8 . Because the lifecycle listeners responsible for creating the role-typed MBeans are not configured, the query reveals that no role-typed MBeans are available.

For reliable and cheap web hosting services please check cheap web hosting website.

Comments are closed.