pero 2005/09/14 08:05:50 Modified: webapps/docs changelog.xml monitoring.xml Log: Add JMX Remote create and unregister ant tasks Revision Changes Path 1.373 +3 -0 jakarta-tomcat-catalina/webapps/docs/changelog.xml Index: changelog.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v retrieving revision 1.372 retrieving revision 1.373 diff -u -r1.372 -r1.373 --- changelog.xml 14 Sep 2005 13:25:22 -0000 1.372 +++ changelog.xml 14 Sep 2005 15:05:49 -0000 1.373 @@ -40,6 +40,9 @@ <subsection name="Catalina"> <changelog> + <add> + Add JMX Remote create and unregister ant tasks (pero) + </add> <fix> <bug>36343</bug>: Only normalize out backslash on Windows platforms. (billbarker) </fix> 1.5 +126 -0 jakarta-tomcat-catalina/webapps/docs/monitoring.xml Index: monitoring.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/monitoring.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- monitoring.xml 21 Jul 2005 08:49:32 -0000 1.4 +++ monitoring.xml 14 Sep 2005 15:05:49 -0000 1.5 @@ -762,6 +762,132 @@ </section> +<!-- Create ######################################################################### +--> + +<section name="JMXAccessorCreateTask: remote create mbean ant task"> +<p> +List of Attributes<br/> +<table border="1" cellpadding="5"> + + <tr> + <th align="center" bgcolor="aqua">Attribute</th> + <th align="center" bgcolor="aqua">Description</th> + <th align="center" bgcolor="aqua">Default value</th> + </tr> + + <tr> + <td>name</td> + <td>Full qualified JMX ObjectName -- <em>Catalina:type=MBeanFactory</em> + </td> + <td></td> + </tr> + + <tr> + <td>className</td> + <td>Existing MBean full qualified classname (see Tomcat mbean description above) + </td> + <td></td> + </tr> + + <tr> + <td>classLoader</td> + <td>ObjectName of server or web application classloader <br/> + ( <em>Catalina:type=ServerClassLoader,name=[server,common,shared]</em> or<br/> + <em>Catalina:type=WebappClassLoader,path=/myapps,host=localhost</em>) + </td> + <td></td> + </tr> + + <tr> + <td>ref</td> + <td>JMX Connection reference + </td> + <td><code>jmx.server</code></td> + </tr> + + <tr> + <td>echo</td> + <td>Echo command usage (access and result) + </td> + <td><code>false</code></td> + </tr> + +</table> +</p> +<p> +Example to create remote mbean<br/> +<source> + <jmx:create + ref="${jmx.reference}" + name="Catalina:type=MBeanFactory" + className="org.apache.commons.modeler.BaseModelMBean" + classLoader="Catalina:type=ServerClassLoader,name=server"> + <Arg value="org.apache.catalina.mbeans.MBeanFactory" /> + </jmx:create> +</source> +</p> +<p> + <b>Warning</b>: A lot of tomcat mbeans can't be really create and connect with <br/> + the parent. The valve, cluster or realm Mbeans are not autconnect with there parent.<br/> + Use <em>MBeanFacrory</em> create operation instead. +</p> + +</section> + +<!-- Unregister ######################################################################### +--> + +<section name="JMXAccessorUnregisterTask: remote unregister mbean ant task"> +<p> +List of Attributes<br/> +<table border="1" cellpadding="5"> + + <tr> + <th align="center" bgcolor="aqua">Attribute</th> + <th align="center" bgcolor="aqua">Description</th> + <th align="center" bgcolor="aqua">Default value</th> + </tr> + + <tr> + <td>name</td> + <td>Full qualified JMX ObjectName -- <em>Catalina:type=MBeanFactory</em> + </td> + <td></td> + </tr> + + <tr> + <td>ref</td> + <td>JMX Connection reference + </td> + <td><code>jmx.server</code></td> + </tr> + + <tr> + <td>echo</td> + <td>Echo command usage (access and result) + </td> + <td><code>false</code></td> + </tr> + +</table> +</p> +<p> +Example to unregister remote mbean<br/> +<source> + <jmx:unregister + name="Catalina:type=MBeanFactory" + /> +</source> +</p> +<p> + <b>Warning</b>: A lot of tomcat mbeans can't be really unregister. <br/> + The Mbeans are not deregister from parent. Use <em>MBeanFacrory</em> <br/> + remove operation instead. +</p> + +</section> + <!-- condition ######################################################################### -->
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]