[jboss-user] [JBossCache] - Re: Threading Bug in PojoCache?

jason.greene@jboss.com do-not-reply at jboss.com
Wed May 9 21:58:24 EDT 2007


"mvlior" wrote : Hi,
  | 
  | I've been seeing the same exception in a somewhat different scenario, but perhaps there is a connection, this being the only post mentioning 
  | "null PojoInstance for fqn"...
  | 
  | Basically, I'm running a replciated cache on two different JVMs. One attaches a POJO and then detaches it, while the other tries to acces it within a org.jboss.cache.CacheListener#nodeRemoved() method. AFAIK the notifier call is on the same thread.
  | 
  | The goal was to get a remote notification for POJO creation/deletion. 
  | 

This is a timing problem. When a node is attached an internal node is created and the name you pass is used to create a reference node. When a node is removed the internal node is deleted first, so by the time your notification is received its not there which causes find() to fail.

2.0.0.GA will have remote pojo notification support, so I would recommend switching to that when its available.

-Jason

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

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



More information about the jboss-user mailing list