Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Method / Bean Transaction (warning: HFE Master Mock Exam Question)

Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't want to taint your master exam, quit reading now.

I'm pleased with the overall cleanliness of the final mock exam in the back of the book. The questions were 'hard', but not made that way through unreasonable means.

But I have a question about the very last question. It says that the TransactionRequiredException will get thrown to inform the client that the bean needed to be called within the context of a transaction. I was about to say 'yes', but switched it to 'no' because it's the specific method that needs a transaction, not the bean, right? You could specify all methods with an asterisk, but that's still methods within a bean, not the bean itself.

Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess when you say 'call a bean', doesnt it mean 'call a bean method'???, in that case the question stands correct because a bean (bean method) needs to be called in a transaction context, otherwise a TransactionRequiredException will be thrown.

correct me if i'm wrong.

Bring out your dead! Or a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic