[jboss-user] [JBossCache] - How to add without overwriting
do-not-reply at jboss.com
Thu Feb 1 21:56:53 EST 2007
I'm interested in learning the correct way to add data to a node only if the node is empty. My concern is that between checking if an FQN exists, and adding a new object under that specific FQN, data could have been added to the cache.
I understand there is explicit locking on Node objects, but if the FQN does not exist in the cache, it will return null. Is there a basic pattern or strategy I should be taking to avoid this potential problem? Thanks in advance for any suggestions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009820#4009820
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009820
More information about the jboss-user