Is there a way to monitor applications deployed on GlassFishV3? I want to create an application which would be notified when another application throws an Exception. I was thinking about an application deployed on a server which would monitor other application on that server and if the monitored application threw an Exception it would be caught and sent via queue or something like that to my application, but i don't know how to create it.
Any thoughts? Or maybe other, better solutions to this problem?