[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Locks on MainDeployerImpl

alesj do-not-reply at jboss.com
Fri Feb 20 08:15:12 EST 2009


"alesj" wrote : "adrian at jboss.org" wrote : 
  |   | then they might end up processing each other's stuff but they won't miss one.
  | I wasn't thinking about missing one.
  | I had this in mind (#t = #thread):
  | 
  | 1t - addDeployment
  | 1t - process
  | 
  | While 1t is just done with process' undeploy part, but before it enters processTopDeploy, 2t does addDeployment, but it's really re-deploy.
  | Meaning it will add its previous context to undeploy, which wouldn't be 
  | processed until 2t calls process, but itself would be picked-up by 1t's processToDeploy.
  | In this case the 2t's re-deploy's undeploy wouldn't happen, only deploy,
  | which can lead to whatever. :-)
I probably have to create similar undeploy processing 
(and not do that in addDeployment)
in process() as I do for deploy in processToDeploy.


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

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



More information about the jboss-dev-forums mailing list