Hi,

Is the following synchronization necessary? 

TreeCache cache = new TreeCache(channel);
......
// possiblely access from multiple threads
synchronzied ( cache) {
    Value v = cache.get(fqn, key);
    if ( v != null ) {
         // do something
    }
}

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959791#3959791

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959791
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to