• 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
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

HFE Page 497 - Transaction Question

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q.
Of the six transaction attributes, which one (or ones) must NOT be used by
a bean that calls getRollbackOnly() or setRollbackOnly()?


I was think of Supported, NotSupported and Never, but the answer in HFE site says "Never"
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mini,
Yes, I think you are right. Because Supports, NotSupported or Never should not be used by beans that call getRollbackOnly() and setRollbackOnly(). If the beans try to use any of those attributes, the container will definitely throw IllegalStateException.

Hope this helps.

Suman
 
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mini:
I did not see the answer HFE site but I choosed the same answers like you did, Supports, NotSupported and Never. I think those three are the answers unless one gives me reasons to think otherwise.
 
mini mehta
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies. This is the link to the answers from HFE site http://www.wickedlysmart.com/HeadFirst/HeadFirstEJB/sharpens/EJBSharpenC.pdf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic