Posted by lunobili
on October 8, 2009 at 8:33 PM PDT
I have a few web modules with a class that implements the ServletContextListener. I do this because I have got some initialization work that is expensive and I want to make sure it all went well at start time rather then the first time users hit the application.
So here comes to the question:
I would like the application server to tell me if the context initialization went well rather than grepping the log for exceptions. How can I do this?
I figured out that AMX could be a good candidate to query these informations, but I have not found enough documentation to actually understand how to achieve this.
I found this interface https://glassfish.dev.java.net/nonav/javaee5/amx/javadoc/com/sun/appserv... that looks promising, but how do I get an instance of a class implementing it?
Thanks in advance for your kind reply,
Really sorry, I just realized that I posted this thread in the wrong forum. I wanted to post it in java.net Forums » GlassFish » GlassFish.
Can an administrator move it in the correct place?
Sorry for the inconvenience,
Message was edited by: lunobili