Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to maintain transaction [Atomic] for concurrent access

843854Jan 17 2005 — edited Jan 17 2005
Currently we have a situation where a Stateless session bean
S calls Entity bean E.The Session bean S has a Method M
which does a findByPrimayKey operaton for getting the
Maximum record and adds ONE to it and inserts using a Create
Statement.The Traction attribute is set as Reqired for all beans.
The Question here is if there is concurrent access which this logic Succeed.
OR
What is the best way of handling these type of increment in code .
regards
siva
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2005
Added on Jan 17 2005
1 comment
59 views