Hi Nicolai,

Nicolai Krog wrote:

Hi all,

I am new here (this is my first post), so please bare with me ;-)

I am using OJB in a rather large web-application.

I am experiencing the problem that I sometimes get "old" values returned.
Fx. if I have a certain field value "false", set it to "true" and write it in db, I can later experience that a method returns the old "false" value. Even though that I can see that the value IS set to "true" in my DB.


So somehow there is a divergence between my object in RAM and the data stored in DB.

I am sure, that I am missing something important about how to use OJB, what could it be?


This sounds like a cache problem. Have a look at http://db.apache.org/ojb/objectcache.html#Shipped%20cache%20implementations

further if your referenced objects be outdated you can enable the 'refresh' attribute on reference- and collection-descriptor
http://db.apache.org/ojb/repository.html#reference-descriptor
http://db.apache.org/ojb/repository.html#collection-descriptor


regards,
Armin

Kindest regards,

Nicolai Krog


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to