Faiz A Chachiya wrote:
I have two application which point to same database but run under different JVM.
1. Admin application - The admin application is responsible for adding some entites, reporting....., runs under Tomcat6.
2. Service application - The service application does some processing, running outside Tomcat6.
There is table called as DTR, when a new DTR is added through the Service application and when someone does the reporting through the Admin application, the newly added DTR does not showup. I think it only shows up the data that had been cached earlier by admin application.
Is there anyone who has faced similar problem in past or anyone who has any solution
Regards,
Faiz.
Hello all!
We have a similar problem but we are using OpenJPA and not Hibernate.
We do a search by ID using an EntityManager object. The application worked fine when it was deployed on a single JVM server, but when it was deployed to another server that has 3 JVM's the data we retrieve by doing a search by ID is not the latest data available in the DB (so if the user changes that data via the UI and the data is stored in the DB what we retrieve when we want to fetch the data by ID is not what the user has just set but the older version).
We did not set any type of caching in the persistence.xml file. Do you have any idea what could be wrong here?
Thank you
Best regards,
Sorin