Hi, I 'm Ezequiel from Argentina. In my job we have an stand-alone-application in SWT that connects to a db server. We use a single hibernate session. This session is created when application starts, and ended when application closes. The issue we have is that when multiple applications are running (in different machines), objects do not show there real state. For example:
1) in session 1 we list all the purchase order.
2) in session 2 we list all purchase order and change state to one of them.
3) in session 1, we list all order purchase again but state of purchase order remains the same.
Queries are cached. If we execute any query in a single hibernate session, hibernate executes de select only once, but not twice(except if you wait a couple of minutes). We need to have the information refreshed instantly for every single
We looked for the answer, but didnt find any. I know there is a first level cache for the session.
I hope I made myself clear.
thanks...
|