Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!