Hello,
I'm using Hibernate V2.1.2, MySQL V4.0.16, Tomcat 5.0.18
The Database is changed from two sources: a WebApp and a Daemon that runs on a single thread. They use the same code to access the database.
My problem is that the WebApp is ignorant to changes on the database outside of the webapp's scope, such as creating, deleting, etc. On the other hand, the single thread program (daemon) doesn't have that kind of problems.
Note: the webapp uses sessions for a single operation (1 per request), and the daemon uses a session for a cycle run.
1. How do we fix this?
2. Is it possible to clean the Hibernate cache (application scope- first level I think)?
Thank you very much,
Diogo
|