Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a Stateful session bean's ejbCreate() runs in a meaningful transaction??

 
Kenny Lomax
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
the answer to Question 42 of the HFEJB final exam says that
a Stateful session bean's ejbCreate() runs in a meaningful transaction.

Can someone please confirm this. I thought that was not he case.
Thanks
Kenny
 
Rahul Mishra
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the EJB Spec(Page 90 Table i think)...it says that ejbCreate() will not run in a meaningful Transaction Context for CMT, the Transaction context begins only after the method afterBegin().

But for a BMT SFSB..you can use getUserTransaction() and invoke its method.

Now,the Question is..what is HFEJB referring to..? BMT or CMT?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!