I have a j2ee application and standalone application. Both the application are pointing to the same schema.
When i am updating the schema using the stand alone application session in the j2ee application goes out of sync. To avoid this, before reading any objects in the j2ee application i am using session.flush() to synchronize the session. But the problem is that even after using session.flush() its not guaranteed that session is synchronized. Observed one thing whenever i am debugging the j2ee application, session.flush works fine, and i could read the objects correctly. Is there any way to forcefully synchronize/flush the session?
|