wood burning stoves 2.0*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
Author

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 ?

Thanks,
Suchitra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dbt in exceptions + transactions + Session bean (BMT)