We are developing WebSite, which should have several requests per second.
Our current environment is JavaEE, JBoss 4.2.3, Struts2 for MVC, JPA with Hibernate as ORM and Postgres as DB.-
This is the scenario: whenever a request arrives on any of the pages, some actions check the information in the database to fill in the requested page (this information consists of several objects, some of them with matching collections, some are lazy, some tend to); everything works fine until we get several (not many ... 2 enough XD) simultaneous requests, and then hibernate throws an "OptimisticLockException" when this information is received.
The funny thing about this is that we only read information! never wrote!
Maybe we missed something or something like that ... any help would be appreciated.
Thanks in advance.
source share