Jair da Silva Ferreira Júnior wrote:
Hello,
Does anyone know how to "refresh" or "reload" an OJB cached object from the database? Is there any API or method that can help me do this? The situation is: I have an object in OJB cache, the object has been changed in the database. How can I say to OJB to reload my object?
If you know which object to reload, you can call broker.removeFromCache(Object obj)
if you don't know which objects are changed, you have to clear the whole cache
broker.clearCache()
or you can use an ObjectCache implementation with object lifetime support (e.g. object was removed from cache after a defined period)
(next upcoming release does support per class cache definition and support object timeout in cache implementation)
regards, Armin
Thanks, Jair Jr
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]