[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

spennec do-not-reply at jboss.com
Wed Nov 7 09:41:33 EST 2007


Thanks for the advice regarding Options.
What I always do is these calls:

final InvocationContext invocationContext = treeCache.getInvocationContext();
  | final Option optionOverrides = invocationContext.getOptionOverrides();

I guess that I recieve a new option object each time, or at least one that is recent enough to apply to the current transaction. Based on what I've been able to observe until now, it seems to work fine.

You are correct: the CCE only happens on the remote node.

We are heavily using TreeCache on my project, so if I can be of any help to have this problem solved, I'd be more than happy! :-)

One more small question (slightly off topic, though): if I setup a TreeCacheListener on the two members of my cluster, and I remove a node in one member: is the other member's listener supposed to be called?

Thanks for your support!

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102561



More information about the jboss-user mailing list