This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes dbt in exceptions + transactions + Session bean (BMT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "dbt in exceptions + transactions + Session bean (BMT)" Watch "dbt in exceptions + transactions + Session bean (BMT)" New topic

dbt in exceptions + transactions + Session bean (BMT)

Suchitra Bhat
Ranch Hand

Joined: Dec 30, 2005
Posts: 62
Hi ,

I read the following in spec ejb-3_0-fr-spec-ejbcore.pdf page 342

If the client request is associated with transaction T1 and instance is already associated with T2, container suspends T1 and invokes bean method with T2. Container resumes T1 when method (with any associated interceptor methods) completes. This case never happens for stateless session bean or a MDB.

The doubt is
What happens if BMT demarcated session bean starts a new transaction (might not be already associated) when the client invokes bean method and client is associated with transaction ? Can this case happen with stateless session bean ? What exception is thrown to client when SLS bean rolls back the transaction associated with it ? Will the client transaction associated with client also be rolled back and clients recieves TransactionRolledBackException ?

Have you checked out Aspose?
subject: dbt in exceptions + transactions + Session bean (BMT)
It's not a secret anymore!