File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handling auto increment

 
sivakumar ganti
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic