This one time, at band camp, Gregory Block said:

GB>Which brings up a related and important question:  Is the cache API far 
GB>enough along that a pluggable replacement cache is yet possible to 
GB>implement?
GB>
GB>On 14 Jul 2004, at 01:12, Patel, Kalpesh wrote:
GB>
GB>>
GB>> We want to use castor in a clustered environment and want to 
GB>> expireCache
GB>> maintained by castor if an object is modified at a node. As soon as an
GB>> Transaction is commmited we will find the objects modified and publish 
GB>> a
GB>> message on Topic and the other nodes in cluster will receive this 
GB>> message
GB>> and use the new Database.expireCache() API to expire the cache.
GB>>
GB>> To minimize the changes needed to be done in castor's code I am 
GB>> planning to
GB>> design a class which will implement TxSynchronizable and it register 
GB>> it in
GB>> the Database.begin() and it will receive callbacks and in those 
GB>> callback I
GB>> will implement the message publishing framework. So the only change I 
GB>> would
GB>> need to do is in the Database.begin() method.
GB>>
GB>> Now I just want to get feedback about this strategy ? Could any one of 
GB>> you
GB>> guys suggest a better strategy?

Kalpesh, 

Greg took the words right out of my mouth. Werner has been refactoring
the caching layer lately and one of things that I wanted him to do was
make the it JCache compliant (http://jcp.org/en/jsr/detail?id=107). If
we make it JCache compliant, any JCache implementation can be easily
plugged in. This allows for distributed caching without having to cook
up your own API. However, Werner is out on holiday this week and most of
next week. I'll CC him directly on this message so that when he returns
we can include him in the discussion.

Bruce
-- 
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to