Re: hot to reload cached object?

2003-12-05 Thread Martin Kalén
Hi! Yes; removeFromCache will remove the weak reference to the object and make it eligble for garbage collection. Jair da Silva Ferreira Júnior wrote: transaction.begin(); Customer c=new Customer(); c.setName(customer); transaction.lock(c,transaction.WRITE);

hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
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? Thanks,

Re: hot to reload cached object?

2003-12-04 Thread Martin Kalén
Jair da Silva Ferreira Júnior wrote: Does anyone know how to refresh or reload an OJB cached object from the database? If you are using the PersistenceBroker API, the method to use is: broker.removeFromCache(object); See

Re: hot to reload cached object?

2003-12-04 Thread Armin Waibel
Hi, 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

Re: hot to reload cached object?

2003-12-04 Thread Jair da Silva Ferreira Júnior
transaction.commit(); Thank you very much for your help. Sincerely, Jair Jr - Original Message - From: Martin Kalén [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 2:08 PM Subject: Re: hot to reload cached object? Jair da Silva Ferreira Júnior wrote