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

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


"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. :-)

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

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



More information about the jboss-dev-forums mailing list