• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Doubts in CMT vs BMT beans

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic