JBoss Community

Re: can I avoid a service to block as7 startup ?

created by David Lloyd in JBoss AS7 Development - View the full discussion

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

Start a new discussion in JBoss AS7 Development at Community