Hi everyone,
Happy New Year to all.
I am facing concurrency issues in my Web App and I used hibernate version to fix it.
It fixed the problem but then application is considerably slowing down to the extent of beoming non-responsive. We have restart the server to fix it.
We have checked the memory consumption, db connection pooling and db locks, everything seems normal but still it becomes non-resposive once or twice evryday.
If I remove the version thing then system is okay but concurrency issue occurs.
Code is as follows:
Code:
<class entity-name="balance" optimistic-lock="version" dynamic-insert="true" dynamic-update="true">
<composite-id>
<key-many-to-one lazy="false" name="walletId" entity-name="mtx_wallet"
column="wallet_id"></key-many-to-one>
</composite-id>
<version name="modifiedOn" access="field" column="modified_on" type="timestamp"> </version>
Technologies used - Spring, Struts 2 , Hibernate with maps
Servers - Webshpere 6.1 and Oracle 10g
Please help me, this is a financial app and I feeling a lot of pressure from my manager.
Regards,
Rajiv