// Implement it !
We will not rehash the basic concepts about EJB Timers, which have been discussed in
lighted section of the code, which shows how you can chain your ModelNode objects in
order to reach the attribute that we are going to monitor (the activeCount attribute of
the ExampleDS datasource).
Once you have the value of the activeCount attribute, we leave it to your imagination
to envision all the possible actions you can undertake!
It is worth noting that there are additional means of monitoring WildFly. One of them is
using the hawt.io plugin for JBoss ( http://hawt.io/plugins/jboss/ ). We already tried this
for ActiveMQ when we were developing MessageBeans. Another tool is Jolokia ( ht-
tp://www.jolokia.org/ ) , which exposes JMX beans over HTTP. So, if you are not into writ-
ing your own monitors, there are other options worth exploring.
Search WWH ::