• Post Reply Bookmark Topic Watch Topic
  • New Topic

entity bean concurrency question

 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Which methods of an entity ejb provide concurrency...i.e. only one method among all instances of a given entity ejb can be executed by one caller at a time. Does this pertain to all public methods exposed in the interface?

Thanks in advance.

-Saha
 
Aleksandar Kocic
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Entity beans are transactional, shared resources, simultaneously used by many clients. It means that EJB container and the database must enforce concurrency control. For this reasons, methods in the entity bean class are not synchronized.
Entity EJBs are not written as thread-safe components. Each entity bean instance never has more than one thread control in its object.
 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Aleksandar,

Does this apply to all methods in an entity EJB? I think its for all methods exposed in the interface. True?

-Saha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!