users@glassfish.java.net

Re: Problem with long running initialization in ServletContextListener

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 10 Mar 2010 16:51:35 -0800

On 03/10/10 12:40 AM, glassfish_at_javadesktop.org wrote:
> 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?
>
>

I'm not sure I fully understand the issue, but what is your
ServletContextListener#contextInitialized doing that is taking
such a long time?

Jan

> Thanks,
> Luca
> [Message sent by forum member 'lunobili' (luca.nobili_at_tradingscreen.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=391000
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>