In AEM , JMX allows us to manage our application at runtime. Although AEM provides a rich set of out of the box MBeans, we also create our own MBeans and when it is required.
Here I am going to discuss one simple use case associated with how could we create our MBean and how to leverage this MBean to read the AEM data.
Let’s talk about use case first -
I want to read some data like Status, Workflow instance start time and end time, payload path of each instance of a specific non transient workflow model.
Once we enter the specific non transient workflow model id and in return we will be getting following fields Status, Workflow instance start time and end time, payload path in JSON response.