'How can we invoke the MBeans using JMX connection via jconsole?

I am trying to achieve a task where I need to check if I can invoke the MBeans using JMX connection via jconsole. I just need to fetch the Mbeans.

May someone help me out in achieving this ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source