Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how Entity beans are transcational????  RSS feed

 
Venu Navat
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how Entity beans are transcational?..what does it mean by transcational practcally?
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Entity Beans are CMT i.e. where Transactions are managed by Container.
Each method invokation on an ejb either starts a new transaction or is part of previous transaction. CMP beans must be part of a transaction. This transaction scope is specified by transaction attribute in deployment file. The transaction ends before the method which started the transaction, ends. if successful, it commits before the end of method, otherwise rolledback and throws TransactionRolledbackException or RemoteException or TransactionRolledbackLocalException is thrown depending upon the case.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!