I think it has the same problem.
thread1 is in A.getTitle so locks A.
thread2 is in B.getTitle so locks B.
thread1 gets B and calls Sync.getName(B), and waits for B there (in b.getName() because
thread2 locks B)
thread2 gets A and waits for the Singleton to call getName(A), but thread1 will not
return
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257237#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...