[jboss-dev-forums] [JBoss AS7 Development] - Re: Overall control of graceful shutdown
Emanuel Muckenhuber
do-not-reply at jboss.com
Thu Sep 23 09:21:24 EDT 2010
Emanuel Muckenhuber [http://community.jboss.org/people/emuckenhuber] created the discussion
"Re: Overall control of graceful shutdown"
To view the discussion, visit: http://community.jboss.org/message/563312#563312
--------------------------------------------------------------
I guess the startup could be different from case to case, but we could provide a way to register a runnable we run after deployment completed. More precisely a service using the asynchronous() feature of msc and registering a runnable which does something like:
public void run() {
try {
connector.start();
startContext.complete();
} catch (Throwable t) {
startContext.failed(new StartException(t));
}
}
public void run() {
try {
connector.start();
startContext.complete();
} catch (Exception e) {
startContext.failed(new StartException(e));
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563312#563312]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100923/35642f7b/attachment.html
More information about the jboss-dev-forums
mailing list