[jboss-dev-forums] [JBoss AS7 Development] - Re: can I avoid a service to block as7 startup ?
David Lloyd
do-not-reply at jboss.com
Tue Oct 11 11:03:05 EDT 2011
David Lloyd [http://community.jboss.org/people/dmlloyd] created the discussion
"Re: can I avoid a service to block as7 startup ?"
To view the discussion, visit: http://community.jboss.org/message/631178#631178
--------------------------------------------------------------
You have to call context.complete() from within your asynchronous task. No, you cannot use context.execute() for that; that uses a service thread. You need a separate thread pool for blocking tasks.
I think though that overall you might want to think about avoiding hooking into the AS at this level.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/631178#631178]
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/20111011/0d81dca2/attachment.html
More information about the jboss-dev-forums
mailing list