Hi everybody,
I am trying to write a custom mbean that listens to various events and takes action based on that.
Specifically:
- Generic errors generate an SMS to my cell phone
- When logs are rotated, I want to save the logs out to a different filesystem, and delete the local file.
So my questions are:
1. how do you write an MBean that has access to the classpath of your app? putting it into applications/mbeans won't do that. Ideally I just would like an MBean module in my EAR file, and none of this create-mbean deploy-mbean stuff (and full access to my app's runtime)
2. what is the event for the log being rotated?
Thanks!
Benjamin
[Message sent by forum member 'therealbr' (therealbr)]
http://forums.java.net/jive/thread.jspa?messageID=261719