This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes handling auto increment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "handling auto increment" Watch "handling auto increment" New topic
Author

handling auto increment

sivakumar ganti
Greenhorn

Joined: Jan 19, 2004
Posts: 22
guys,
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: handling auto increment
 
Similar Threads
External System in Sequence Diagram
Usage of EJB - Need clarification
inner class
Wrapp entity bean
How To Output the Value of A Hidden Field?