Hi,
I'm having some problems with session cache and i'm asking for your help.
I have 2 threads each one with it's own session (i call it Session A and B), and they are acessing to a database.
They both load the same object from the database, and Session A changes that record and stores it back in the database. Than both Threads load that object again.
Thread A loads the object with the changes, and Thread B loads the original object. This happens because they are loading the object from their Session Cache instead of loading them from the database.
How can I refresh Session Caches when the database data changes?
Thanks,
Joao Rangel
|