Java Reference
In-Depth Information
Figure 5-4.
JMXJobRunner
exposed in JConsole
For any bean exposed, there are up to three sections: attributes that allow you to modify public
attributes (which you don't have in this case); Operations, which lets you execute public methods; and
Notifications, to show you any JMX notifications (messages sent from the bean to anyone listening via
JMX). To run your batch job, go to Operations, as shown in Figure 5-5. There you see the only public
method on
JMXJobRunner
:
runJob
. It's void and takes a single parameter. To invoke the job, all you need
to do is enter the job name in the box and click Runjob.