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

kabir.khan@jboss.com do-not-reply at jboss.com
Fri Jul 3 07:00:55 EDT 2009


I think there will be a corner-case issue when AS boots up. At the end, it checks to see what has not been fully deployed. If there are asynchronous deployments still being processed when the main AS thread finishes the boot, they will probably be picked up as not deployed.

The AbstractController internally marks which contexts are currently being processed asynchronously, so we should probably expose a check in the spi

  | boolean processingAsynchronousContexts()
  | 

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
  | 


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

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



More information about the jboss-dev-forums mailing list