• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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
reply
    Bookmark Topic Watch Topic
  • New Topic