Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

noob question about EJB Transactions and concurrency

meatwadJun 23 2011 — edited Jun 28 2011
I have a web client that calls a stateless session bean. This bean contains a method that checks the data in some database tables and, if everything looks good, calls a stored procedure which updates those tables. If I understand correctly, placing this method in a container-managed transaction should guarantee that only one instance of that method inside the bean can run at any time and would prevent 2 threads from running it simultaneously.

Do I have that right?
This post has been answered by ramp on Jun 27 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2011
Added on Jun 23 2011
32 comments
537 views