• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity bean and bean managed transaction

 
Jane Somerfield
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know entity bean does not support
bean managed transaction. Why?
Can we do JTA or JDBC transaction within
bean managed persistence? Thanks.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The persistance lifecycle of an Entity Bean is managed by the Container, therefore it makes sense for the Container to also manage the transactional integrity of the Entity Bean.
Even though you cannot explicitly manage transactions in an Entity Bean, you can invoke an Entity Bean within the context of another EJB's BMT as long as the Entity Bean's transactioning is not marked as RequiresNew, Never, or NotSupported.
 
Sami Casab
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some problems with this and i want to ask you if i have two simultaneos users updating a cmp field the container should prevent this?
How many instances of the entity bean should the container create for each record?
im Wonderig if i will control this with a Bean managed transactions, but im not sure, could you give me an advise?
Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!