• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction in entity

 
Micheal H Nguyen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have transaction in entity. If we do, do we have to finish the transaction before the method ends?

-Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Entity beans represent database records, so you can imagine that they need to know whether they use a transaction or not. If they aquire a new transaction, the transaction will end when the method is over.
 
warren li
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
entity beans only allow CMT, which mandates to end a transaction with the method. You don't have choices here.
 
Micheal H Nguyen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic