Re: [5.3.6] Services shutdown order
And the reader has already carried on :) Thank you all for your time On Fri, Apr 5, 2013 at 9:59 PM, Howard Lewis Ship wrote: > Left as an exercise to the reader. > > > On Fri, Apr 5, 2013 at 2:30 AM, Muhammad Gelbana >wrote: > > > Thank you I'll look into integrating it into my application, thanks a > again > > :) > > > > So there is no official way to do this, correct ? > > > > > > On Fri, Apr 5, 2013 at 12:41 AM, Robert Hailey > wrote: > > > > > > > > Have you tried something like this (attached)? > > > > > > -- > > > Robert Hailey > > > > > > > > > WARNING: Quick hack, totally untested, absolutely no warranty. > > > > > > > > > > > > On 2013/04/04 (Apr), at 5:01 PM, Muhammad Gelbana wrote: > > > > > > > I've raised the question before but I've reached a point where I must > > > > resolve this. > > > > > > > > Since the RegistryShutdownHub doesn't offer ordering to call > registered > > > > will-shutdown/shutdown listeners, has anyone managed to order the > > > shutdown > > > > process of his application ? > > > > > > > > I need to shutdown my services before destroying the database > > connection. > > > > > > > > Thank you. > > > > > > > > > > > > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com >
Re: [5.3.6] Services shutdown order
Left as an exercise to the reader. On Fri, Apr 5, 2013 at 2:30 AM, Muhammad Gelbana wrote: > Thank you I'll look into integrating it into my application, thanks a again > :) > > So there is no official way to do this, correct ? > > > On Fri, Apr 5, 2013 at 12:41 AM, Robert Hailey wrote: > > > > > Have you tried something like this (attached)? > > > > -- > > Robert Hailey > > > > > > WARNING: Quick hack, totally untested, absolutely no warranty. > > > > > > > > On 2013/04/04 (Apr), at 5:01 PM, Muhammad Gelbana wrote: > > > > > I've raised the question before but I've reached a point where I must > > > resolve this. > > > > > > Since the RegistryShutdownHub doesn't offer ordering to call registered > > > will-shutdown/shutdown listeners, has anyone managed to order the > > shutdown > > > process of his application ? > > > > > > I need to shutdown my services before destroying the database > connection. > > > > > > Thank you. > > > > > > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: [5.3.6] Services shutdown order
Thank you I'll look into integrating it into my application, thanks a again :) So there is no official way to do this, correct ? On Fri, Apr 5, 2013 at 12:41 AM, Robert Hailey wrote: > > Have you tried something like this (attached)? > > -- > Robert Hailey > > > WARNING: Quick hack, totally untested, absolutely no warranty. > > > > On 2013/04/04 (Apr), at 5:01 PM, Muhammad Gelbana wrote: > > > I've raised the question before but I've reached a point where I must > > resolve this. > > > > Since the RegistryShutdownHub doesn't offer ordering to call registered > > will-shutdown/shutdown listeners, has anyone managed to order the > shutdown > > process of his application ? > > > > I need to shutdown my services before destroying the database connection. > > > > Thank you. > > >
Re: [5.3.6] Services shutdown order
Have you tried something like this (attached)? -- Robert Hailey WARNING: Quick hack, totally untested, absolutely no warranty. OrderedShutdownHubImpl.java Description: Binary data On 2013/04/04 (Apr), at 5:01 PM, Muhammad Gelbana wrote: > I've raised the question before but I've reached a point where I must > resolve this. > > Since the RegistryShutdownHub doesn't offer ordering to call registered > will-shutdown/shutdown listeners, has anyone managed to order the shutdown > process of his application ? > > I need to shutdown my services before destroying the database connection. > > Thank you. smime.p7s Description: S/MIME cryptographic signature
[5.3.6] Services shutdown order
I've raised the question before but I've reached a point where I must resolve this. Since the RegistryShutdownHub doesn't offer ordering to call registered will-shutdown/shutdown listeners, has anyone managed to order the shutdown process of his application ? I need to shutdown my services before destroying the database connection. Thank you.