I have a setup where two instances of same application deployed behind a load balancer and both of the applications are talking to the same database.
The issue I'm having is that when data inserted into the database via one of the application, the very same data is not accessible/visible to the other application.
These two applications have exactly same configuration in terms of database abstraction framework, spring framework, etc. In addition, these two applications run on different tomcat servers on different physical servers.
What could be the cause to the issue?
Edit
Hibernate is configured as follow:
Edit 2
Here's the ehcache.xml
<cache name="org.hibernate.cache.internal.StandardQueryCache"
maxElementsInMemory="10000"
eternal="false"
timeToLiveSeconds="86400"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToLiveSeconds="86400"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
