JBoss Community

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

created by Jason Greene in JBoss AS7 Development - View the full discussion

Dan Sirbu wrote:

 

I am getting a java.lang.IllegalStateException: Illegal controller state when the async call is executed. Let's say I have 2 modules (M1,M2) that I start from the same ME. M1 does not have any blocking op, but M2 does. The M1 module completes it's start ok.

But the M2 fails when calling async. The question is, can I do something like that ?



Only the service itself can call asynchronous in it's start or stop method. As mentioned above, it must be called before the service method returns.

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community