From: markt
Date: Mon, 22 Nov 2010 11:46:46 +0000 (+0000)
Subject: Update docs to new MBean names
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6ddee4ed684e181f53065ed00b7a32608074ea4b;p=tomcat7.0
Update docs to new MBean names
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1037682 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java b/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
index 7004aef6d..e7a087882 100644
--- a/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
+++ b/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
@@ -44,10 +44,10 @@ import org.apache.tools.ant.BuildException;
*
*
* Get a session attribute hello from session with ref ${sessionid.0} form
- * app Catalina:type=Manager,path=/ClusterTest,host=localhost
+ * app Catalina:type=Manager,context=/ClusterTest,host=localhost
*
diff --git a/webapps/docs/monitoring.xml b/webapps/docs/monitoring.xml
index 017f658a3..f4d2a0fee 100644
--- a/webapps/docs/monitoring.xml
+++ b/webapps/docs/monitoring.xml
@@ -126,7 +126,7 @@ controlRole tomcat
property <em>clustertest.maxActiveSessions.orginal</em>
-->
<jmx:get
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
attribute="maxActiveSessions"
resultproperty="clustertest.maxActiveSessions.orginal"
echo="true"
@@ -134,7 +134,7 @@ controlRole tomcat
<!-- set maxActiveSession to 100
-->
<jmx:set
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
attribute="maxActiveSessions"
value="100"
type="int"
@@ -143,7 +143,7 @@ controlRole tomcat
access all session ids directly with Ant property sessions.[0..n].
-->
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="listSessionIds"
resultproperty="sessions"
echo="false"
@@ -152,7 +152,7 @@ controlRole tomcat
<!-- Access session attribute <em>Hello</em> from first session.
-->
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="getSessionAttribute"
resultproperty="Hello"
echo="false"
@@ -391,7 +391,7 @@ List of Attributes
Example to get remote MBean attribute from default JMX connection
<jmx:get
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
attribute="maxActiveSessions"
resultproperty="servlets-examples.maxActiveSessions"
/>
@@ -493,7 +493,7 @@ List of Attributes
Example to set remote MBean attribute value
<jmx:set
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
attribute="maxActiveSessions"
value="500"
type="int"
@@ -575,7 +575,7 @@ List of Attributes
stop an application
<jmx:invoke
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
operation="stop"/>
Now you can find the sessionid at ${sessions.[0..N} properties and access the count
@@ -585,7 +585,7 @@ with ${sessions.length} property.
Example to get all sessionids
<jmx:invoke
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
operation="listSessionIds"
resultproperty="sessions"
delimiter=" "
@@ -598,7 +598,7 @@ with ${sessions.length} property.
Example to get remote MBean session attribute from session ${sessionid.0}
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="getSessionAttribute"
resultproperty="hello">
<arg value="${sessionid.0}"/>
@@ -704,7 +704,7 @@ properties and access the result object counter with ${manager.length} property.
Example to get the Manager from servlet-examples application an bind all MBean properties
<jmx:query
- name="Catalina:type=Manager,path=/servlet-examples,host=localhost*"
+ name="Catalina:type=Manager,context=/servlet-examples,host=localhost*"
attributebinding="true"
resultproperty="manager.servletExamples" />
@@ -786,7 +786,7 @@ List of Attributes
classLoader
ObjectName of server or web application classloader
( Catalina:type=ServerClassLoader,name=[server,common,shared] or
- Catalina:type=WebappClassLoader,path=/myapps,host=localhost)
+ Catalina:type=WebappClassLoader,context=/myapps,host=localhost)