wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question on pg 196 HFE - NO CMT in ejbcreate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question on pg 196 HFE - NO CMT in ejbcreate" Watch "Question on pg 196 HFE - NO CMT in ejbcreate" New topic
Author

Question on pg 196 HFE - NO CMT in ejbcreate

Shreyas Reddy
Ranch Hand

Joined: Oct 09, 2003
Posts: 49
The book says, in ejbCreate method of a stateful bean we cannot call methods to rollback a transaction or find out if transaction has already been set to rollback(CMT)?

But we can get a transaction reference and call method on it...(BMT)

Why is that so?
Is that because we cannot declare the ejbcreate method as CMT in DD?
Thanks,
youngwoo seo
Greenhorn

Joined: May 28, 2004
Posts: 8
----------------------------------------------------------------
The book says, in ejbCreate method of a stateful bean we cannot call methods to rollback a transaction or find out if transaction has already been set to rollback(CMT)?

But we can get a transaction reference and call method on it...(BMT)

Why is that so?
Is that because we cannot declare the ejbcreate method as CMT in DD?
Thanks,
-------------------------------------------------------------------
hi.
in ejbCreate method of a stateful bean, we cannt call to rollback on transaction. but if the stateful session bean implements SessionSynchronization interface, business method can call to rollbak on transaction. additionally, business method of the stateful session bean is called in the "READY STATE". so in the ejbCreate(), you can't call to rollback.

reference it : http://www.valoxo.ch/jr/BeanLC.pdf
[ June 22, 2004: Message edited by: youngwoo seo ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on pg 196 HFE - NO CMT in ejbcreate
 
Similar Threads
Bean things that can be done in BMT Vs CMT
Unspecified Transaction Context
Bean stuff in ejbCreate of stateful session bean
What happend CMT inside BMT ?? (see)
getUserTransaction() in ejbCreate() for stateless session bean