Access JMX JSR 160 MBeans Server.
- Get Mbeans attributes
- Show Get result as Ant console log
- Bind Get result as Ant properties
Examples:
Get a Mbean IDataSender attribute nrOfRequests and create a new ant property IDataSender.9025.nrOfRequests
<jmx:get
ref="jmx.server"
name="Catalina:type=IDataSender,host=localhost,senderAddress=192.168.1.2,senderPort=9025"
attribute="nrOfRequests"
resultproperty="IDataSender.9025.nrOfRequests"
echo="false">
/>
First call to a remote MBeanserver save the JMXConnection a referenz jmx.server
These tasks require Ant 1.6 or later interface. |