Java Reference
In-Depth Information
}
}
public static void safeClose(final Closeable
closeable) {
if (closeable != null) try {
closeable.close();
} catch (Exception e) {
logger.info("Excepton closing the client!
"+e.getMessage());
}
}
}
We will not rehash the basic concepts about EJB Timers, which have been discussed
in Chapter 3 , Beginning Java EE 6 - EJBs . We suggest that you have a look at the
highlighted 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 act-
iveCount attribute of the ExampleDS datasource).
Once you have the value of the activeCount attribute, we leave to your imagina-
tion all the possible actions you can undertake!
Search WWH ::




Custom Search