aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes BMT and stateful session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "BMT and stateful session beans" Watch "BMT and stateful session beans" New topic

BMT and stateful session beans

Moses Marfo

Joined: May 24, 2009
Posts: 27

Is this statement true? I read it in EJB3 in action(page 201, section 6.3.4)
If you are using a stateful session bean and need to maintain a transaction across method calls, BMT is your only option.

I was under the impression that CMT could do this too.

k space
Ranch Hand

Joined: Jun 25, 2002
Posts: 104
If you don't want client-app(s) to control the transaction boundary by using the UserTransaction, then BMT is the only way to maintain transaction across method calls.

SCEA | SCBCD | SCWCD | SCJP - The kSpace
I agree. Here's the link:
subject: BMT and stateful session beans
Similar Threads
Transactional Context of Session Beans
Bean things that can be done in BMT Vs CMT
Bean life cycle cheat sheet
Stateless beans and SessionSynchronization
Remove() question