I have added a temporary work around to stop servicing requests if the Framework shutdown has been called. However, we do call shutdown on the HTTP/S Tomcat connectors before that so it is strange that the request was received by the BridgeServlet in the first place. Until we get that sorted out, we have to live with this temporary hack.
Azeez On Sat, May 9, 2009 at 2:32 PM, Afkham Azeez <[email protected]> wrote: > Yes, the code has been changed to do a graceful shutdown on ctrl+c > > Azeez > > On Sat, May 9, 2009 at 1:46 PM, Samisa Abeysinghe <[email protected]> wrote: > > > > > > On Sat, May 9, 2009 at 12:32 PM, Ruwan Linton <[email protected]> wrote: > >> > >> Afkham Azeez wrote: > >> > Yeah, its the same shutdown hook triggered code that gets called in > >> > these instances, so the fix to the original issue will fix everything. > >> > BTW, on Ctrl+C should we do a forced shutdown or a graceful shutdown. > >> > A forced shutdown can be effected by killing the process anyway, so > >> > should we do a graceful shotdown on Ctrl+c ? > >> > > >> I think we should do a graceful shutdown on a Ctrl+C > > > > I to think people expect it to be graceful with Ctrl+C. > > If it is not, people use kill-9 on Linux usually, or task manager kill > with > > Windows. > > Samisa... > > > >> > >> Thanks, > >> Ruwan > >> > Azeez > >> > > >> > On Sat, May 9, 2009 at 11:57 AM, Ruwan Linton <[email protected]> wrote: > >> > > >> >> Same is true for the "Graceful Shutdown" from the console.... though > it > >> >> is being called and a clean shutdown is happening when you do a > >> >> "Graceful Restart" from the console. > >> >> > >> >> Thanks, > >> >> Ruwan > >> >> > >> >> Ruwan Linton wrote: > >> >> > >> >>> Please note that it seems carbon is not doing the $subject properly. > >> >>> > >> >>> I would expect all the deactivate methods of the declarative > services > >> >>> to be called on shutting down the server before halting the JVM, but > >> >>> it seems like it is not being done. > >> >>> > >> >>> ESB has a requirement to properly shutdown the server, in other > wards > >> >>> it has to run a cleanup task on shutdown... and I put this cleanup > >> >>> task into the MediationInitializer deactivate method, where as the > >> >>> same service components activate method is responsible of > initializing > >> >>> all the ESB specific stuff... but it seems like the ESB cleanup > >> >>> process is not being called on shutdown. :-( > >> >>> > >> >>> Thanks, > >> >>> Ruwan > >> >>> > >> >>> > >> >> -- > >> >> Ruwan Linton > >> >> Senior Software Engineer & Product Manager; WSO2 ESB; > >> >> http://wso2.org/esb > >> >> WSO2 Inc.; http://wso2.org > >> >> email: [email protected]; cell: +94 77 341 3097 > >> >> blog: http://ruwansblog.blogspot.com > >> >> > >> >> > >> >> _______________________________________________ > >> >> Carbon-dev mailing list > >> >> [email protected] > >> >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >> >> > >> >> > >> > > >> > > >> > > >> > > >> > >> > >> -- > >> Ruwan Linton > >> Senior Software Engineer & Product Manager; WSO2 ESB; > http://wso2.org/esb > >> WSO2 Inc.; http://wso2.org > >> email: [email protected]; cell: +94 77 341 3097 > >> blog: http://ruwansblog.blogspot.com > >> > >> > >> _______________________________________________ > >> Carbon-dev mailing list > >> [email protected] > >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > -- > > Samisa Abeysinghe > > Director, Engineering - WSO2 Inc. > > > > http://www.wso2.com/ - "The Open Source SOA Company" > > > > _______________________________________________ > > Carbon-dev mailing list > > [email protected] > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > -- > -- > Afkham Azeez > [email protected] > WSO2 Inc. http://wso2.com > Blog: http://afkham.org > -- Afkham Azeez Software Architect & Product Manager, WSO2 WSAS; WSO2, Inc.; http://wso2.com, Lean . Enterprise . Middleware Member; Apache Software Foundation; http://www.apache.org/ email: [email protected] cell: +94 77 3320919 blog: http://afkham.org twitter: http://twitter.com/afkham_azeez linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
