• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • 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.

--Dale--
 
Shahfazal Mohammed
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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.

-Fazal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic