Friday, November 15, 2013

Execute JMX bean method by jolokia wrapper

official site: http://www.jolokia.org/index.html
Reference: http://www.jolokia.org/reference/html/protocol.html#exec

Configuration in your jvisualvm or jconsole:


Example:
[user@server]$ curl localhost:8080/jolokia/exec/my.app:name=my.SyncJob/doSync

Output:
{"timestamp":1384551703,"status":200,"request":{"operation":"doSync","mbean":"my.app:name=my.SyncJob","type":"exec"},"value":null}

No comments:

Post a Comment