• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFE Page 497 - Transaction Question

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic