Site icon Tutorial

JMXAccessorSetTask: set attribute value Ant task

List of Attributes

Attribute Description Default value
name Full qualified JMX ObjectName — Catalina:type=Server
attribute Existing MBean attribute (see Tomcat MBean description above)
value value that set to attribute
type type of the attribute. java.lang.String
ref JMX Connection reference jmx.server
echo Echo command usage (access and result) false

Example to set remote MBean attribute value

 

<jmx:set

name=”Catalina:type=Manager,context=/servlets-examples,host=localhost”

attribute=”maxActiveSessions”

value=”500″

type=”int”

/>

Exit mobile version