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&...]