This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubts in CMT vs BMT beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubts in CMT vs BMT beans" Watch "Doubts in CMT vs BMT beans" New topic
Author

Doubts in CMT vs BMT beans

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
1. In CMT Stateful Session Bean, in ejbCreate(), why can't we call getRollbackOnly()/setRollbackOnly()?
Whereas, In BMT Staetful Session Bean, in ejbCreate() we can able to call getUserTransaction()? then why can't getRollbackOnly()/setRollbackOnly() can't be called from CMT Stateful Session Bean?

2. For accessing DB(resource manager)/other ejb reference, there should be either client / transaction should be in context. Am I right?

IN that case, for CMT Stateful Session bean, for afterCompletion() method is having access to clientinfo, but not access to resource manager and other EJB refereneces..why?

3. For exam, only CMT is there for all beans(Stateful,Stateless,Message Driven,Entity),not BMT is for exam?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubts in CMT vs BMT beans
 
Similar Threads
method rights of Message Driven Bean
Doubt in access of tx stuff in stateless and stateful bean
Session bean ejbCreate method
HFE vs EJB Spec - session beans
ENTITY BEAN LIFE CYCLE: ALLOWED METHODS.