# To invoke jmx operations on a java/jboss application

**URL:** <https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914>\
**Category:** Ansible Project\
**Created:** [June 29, 2018, 3:33pm UTC](https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914 "2018-06-29T15:33:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josephsimon\_Arokiara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Josephsimon\_Arokiara](https://forum.ansible.com/u/Josephsimon_Arokiara)\
**Post date:** [June 29, 2018, 3:33pm UTC](https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914/1 "2018-06-29T15:33:55Z")

</div>

Hi All,

Is anyone aware of any ansible modules that could be used to invoke jmx operations on a java/jboss application?

Cheers,

Simon J

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [July 2, 2018, 4:23pm UTC](https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914/2 "2018-07-02T16:23:46Z")

</div>

No but you can probably run a command line program to do so using `script` or `shell` modules.

Not tried it, but it looks like there’s something called jmxquery you could maybe use: see [https://blog.outlyer.com/introducing-jmxquery-to-monitor-java-via-python](https://blog.outlyer.com/introducing-jmxquery-to-monitor-java-via-python)

All the best,

Jon

---

<div class="post-metadata">

**Author:** ![Josephsimon\_Arokiara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Josephsimon\_Arokiara](https://forum.ansible.com/u/Josephsimon_Arokiara)\
**Post date:** [July 2, 2018, 10:45pm UTC](https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914/3 "2018-07-02T22:45:05Z")

</div>

Hi Jon,

Thanks for the update. Do we need JDK to run the jmxquery tool or JRE is enough?

Cheers,  
Joseph

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [July 3, 2018, 7:34am UTC](https://forum.ansible.com/t/to-invoke-jmx-operations-on-a-java-jboss-application/27914/4 "2018-07-03T07:34:08Z")

</div>

No idea if you need a jdk or a jre - I’ve not used that tool myself, just looked like something that you could use to query jmx from python.

It doesn’t mention needing a jdk, so I’d try installing it and see if it works for you.  
All the best,  
Jon
