Zhenwei LI wrote:
>
> I have wrote a server side back end program using JMS to transfer data and castor
> to persist. It sleeps every 30 min, and do a send and receive. And it supposely
> ran day and night.
>
> I use castor to retrieve object from database A, and send to database B, and then,
> the object is changed in database A, I need to send to database B again, but it seems
> it was sending the same object as before. Is there a way to clear the memory cache?
>
Someone correct me if I'm wrong on this...
You can configure the mapping-file so the object don't use any cache,
like this:
<class name="com.project.SomeObject" identity="id">
<cache-type type="none"/>
<map-to table="the_table"/>
some fields...
</class>
When you use 'load' on the object it should read from the database every
time.
Stein
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev