• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Entity bean and bean managed transaction

 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic