[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Locks on MainDeployerImpl
bstansberry@jboss.com
do-not-reply at jboss.com
Fri Feb 20 11:14:37 EST 2009
A nit; you can lose changes between the copy and the clear. Better is:
| Map<String, Deployment> copy = null;
| synchronized(toRedeploy)
| {
| copy = new LinkedHashMap<String, Deployment>(toRedeploy);
| toRedeploy.clear();
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211875#4211875
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211875
More information about the jboss-dev-forums
mailing list