Class JMXAccessorSetTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
All Implemented Interfaces:
Cloneable

public class JMXAccessorSetTask extends JMXAccessorTask
Access JMX JSR 160 MBeans Server.
  • Get Mbeans attributes
  • Show Get result as Ant console log
  • Bind Get result as Ant properties

Examples: Set an Mbean Manager attribute maxActiveSessions. Set this attribute with fresh jmx connection without save reference

   <jmx:set
           host="127.0.0.1"
           port="9014"
           ref=""
           name="Catalina:type=Manager,context="/ClusterTest",host=localhost"
           attribute="maxActiveSessions"
           value="100"
           type="int"
           echo="false">
       />
 

First call to a remote MBeanserver save the JMXConnection a referenz jmx.server

These tasks require Ant 1.6 or later interface.
Since:
5.5.10
Author:
Peter Rossbach