users@glassfish.java.net

Problem with long running initialization in ServletContextListener

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Mar 2010 00:40:38 PST

Hi,
I am implementing a ServletContextListener to do some initialization of a service running in Glassfish 2.1.1. Looks like when starting the domain, after 20 minutes asadmin sends a shutdown request to the application server. Since the application service is blocked waiting for ServletContextListener.contextInitialized(ServletContextEvent arg0) to return, the shutdown request is executed only when the initialization returned.
This actually made difficult to identify the issue, because it was not clear from where the shutdown request was coming from.

Has anybody seen this behaviour before? Is there a way to increase the 20 minutes timeout?

Thanks,
Luca
[Message sent by forum member 'lunobili' (luca.nobili_at_tradingscreen.com)]

http://forums.java.net/jive/thread.jspa?messageID=391000