We want to use castor in a clustered environment and want to expireCache
maintained by castor if an object is modified at a node. As soon as an
Transaction is commmited we will find the objects modified and publish a
message on Topic and the other nodes in cluster will receive this message
and use the new Database.expireCache() API to expire the cache.

To minimize the changes needed to be done in castor's code I am planning to
design a class which will implement TxSynchronizable and it register it in
the Database.begin() and it will receive callbacks and in those callback I
will implement the message publishing framework. So the only change I would
need to do is in the Database.begin() method.

Now I just want to get feedback about this strategy ? Could any one of you
guys suggest a better strategy?



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

Reply via email to