Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Question on pg 196 HFE - NO CMT in ejbcreate

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
----------------------------------------------------------------
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 ]
 
Whatever you say buddy! And I believe this tiny ad too:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic