[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Parallel deployments

alesj do-not-reply at jboss.com
Fri Jul 3 07:53:35 EDT 2009


"kabir.khan at jboss.com" wrote : 
  | and at the end of the bootstrap do something like:
  | 
  | 
  |   | //Main bootstrap code...
  |   | 
  |   | if (controller instanceof AsynchController){
  |   |    while (controller.processingAsynchronousContexts()){
  |   |       Thread.sleep(100);
  |   |    }
  |   | }
  |   | 
  |   | //Report uninstalled contexts
  |   | 
  | 
Yuck! :-)

Simply don't include those asynch beans in the check if they are not done yet.
Or print an info about them, that they are still in progress.

If they fail to be fully installed, we will get that info later on,
with the next install / deployment.

I guess this will (also) need to be addressed in MainDeployer::checkComplete.
I'll check this once I update Deployers to use your new Kernel asynch code.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241702#4241702

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241702



More information about the jboss-dev-forums mailing list