MBeans provide potentially important properties and operations to the Apache Tomcat administrator. In this topic, we'll explore how to access MBeans using the jconsole application that is provided in the JDK.
To learn how to use MBeans in Windows follow these steps:
jconsoleand press Enter.
examplesweb application that is shipped with Tomcat. Open WebModule -> //localhost/examples -> none -> none -> Operations -> addWelcomeFile as illustrated below:
addWelcomeFileoperation will add a welcome file entry (e.g.,
default.jsp) to the
examplesweb application. To invoke the operation, click the addWelcomeFile button. Note that
stopoperations are also available on the list of operations. A
stopoperation will stop the web application (attempts to access a stopped web application will result in Tomcat sending an HTTP status of 404 to the browser). A
startoperation will start the web application so that browsers can interact with the website.