Dan Osterrath [http://community.jboss.org/people/DanOsterrath] created the discussion
"Re: Singleton in clustered JBoss AS 6 Final" To view the discussion, visit: http://community.jboss.org/message/583100#583100 -------------------------------------------------------------- Well, the flag had to be set before executing the action. Unfortunatelly checking and setting the flag can not be atomic over all nodes. So this might lead to a race condition that multiple instances enter the "synchronized" area. (Which in fact is not synchronized.) if (flag) // <--- here the race condition might occur flag = true; doSomeLongRunningTasksInDB(); flag = false; } -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/583100#583100] Start a new discussion in EJB3 at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
