-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to intercept CacheConcurrencyStrategy
PostPosted: Fri Dec 03, 2004 11:41 am 
Newbie

Joined: Tue Apr 06, 2004 7:46 pm
Posts: 4
Hibernate version: 2.1.6

I'm looking for a way to proxy all CacheConcurrencyStrategy instances in a session in order to determine when objects in second level cache are written due to update. I was able to proxy CacheProvider and Cache, but on the cache level (method put) it is impossible to determine whether the originating action was a read or update (depends on the strategy).

I need to know updates specifically. Is it possible to setup proxies for CacheConcurrencyStrategy during the configuration? It seems all caches are created during session configuration, where would be the methods I need to customize on the Configuration object?

Or, are there other ways to identify cache writes originating from updates independent from the cache strategy being used?

Thanks much,
Thomas


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.