I'm using JBoss-Cache as the second level cache in Hibernate. The application is deployed across two nodes and the treecache.xml file has appropriate settings to enable asynchronous replication (REPL_ASYNC)
The problem is that state is maintained in an application cache also, there is no way to change this (legacy code). When a cache update (or insert) is received by the JBoss-Cache through cache replication, I need to propagate the change to my application cache. I found that I could do this by registering for cache events using the TreeCacheListener interface, however I can't figure out how to register my implementation of the TreeCacheListener with TreeCache. AFAIK the only way to register a listener is by calling TreeCache.addListener() - since I'm using Tree-Cache behind hibernate I don't have a reference to the TreeCache object. Is there a way to specify the listener as a configuration variable - say thru the treecache.xml file. I'm cross-posting to the hibernate forum to find out if they have a solution... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883112#3883112 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883112 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
