|
From: <ben...@jb...> - 2006-06-26 11:38:04
|
Oops! Sorry. :-) I mean this that I have created a while ago: http://jira.jboss.com/jira/browse/JBCACHE-173 I have added the link to this post and will update it further later. I am planning to implement the flat space approach in 2.0 (or 2.1) depending on the release schedule, I think. On the locking semantics to match the Java one, one thing that I have mentioned previously in the Jira is that if I have an example like the following: | Person p1 = new Person(); | Address addr = new Address(); | | cache.attach(p1); | cache.attach(addr); | | p1.setAddress(addr); | Then if thread 1 is doing: | tx.begin(); | p1.setBlah(); | ... | thread 2 will be blocked in this operation as well: | p1.getAddress().setZip(95123); | Same thing that if thread 2 goes first, then thread1 is blocked as well. In Java, the behavior really depends on whether syncrhonized(this) is used for all of the methods or not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953407#3953407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953407 |