[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Locks on MainDeployerImpl
adrian@jboss.org
do-not-reply at jboss.com
Fri Feb 20 08:43:08 EST 2009
"adrian at jboss.org" wrote :
| I can see two possible fixes:
|
| 1) Have a seperate toRedeploy list you can snapshot where "processUndeploy()"
| adds those to the "toUndeploy" snapshot and creates an entry in the real "toDeploy" list.
|
| 2) Don't move a "toDeploy' request into the snapshot while it exists in the
| real "toUndeploy" list.
However, I guess those also contain potential race conditions.
The main issue being that the snapshoting of toDeploy and toUndeploy are not
in an atomic block together.
So a more complete fix would be to have just one list of "deployment actions"
that you can snapshot and then sort those actions such that the undeploys come first
in the snapshot list.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211804#4211804
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211804
More information about the jboss-dev-forums
mailing list