[jboss-dev-forums] [JBoss AS Development] - Re: Graceful Shutdown

emuckenhuber do-not-reply at jboss.com
Tue Nov 24 07:30:46 EST 2009


Hmm graceful shutdown should not be part of the MC bean lifecycle, as it would then always shutdown in a graceful manner. This should be an optional way to shutdown AS - triggered with a different signal or management action.
Additionally with the graceful shutdown there will most likely be a timeout which then is going just stop AS. This does not seem to fit very well with MC lifecycle actions, since we would basically need to interrupt a action during a state transition (pre_stop -> stop).

I see the problem with the order of calling the graceful shutdown and agree that we should try to leverage existing dependencies. Thinking about that i'm not really sure if using bean dependencies would make sense though.
Using MC bean dependencies would mean that the jboss.web somehow needs to have a dependency on EJB3, which does not really make sense - since the bean itself does not need this dependency.
Maybe one thing which might be worth looking at is if we can use Profile dependencies for that. Since we are going to have something like optional dependencies as well, to better control the boot sequence. At least at the point where a profile would describe something like a service/container - this set of dependencies could make more sense. 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267282#4267282

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267282



More information about the jboss-dev-forums mailing list