aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Method / Bean Transaction (warning: HFE Master Mock Exam Question) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Method / Bean Transaction (warning: HFE Master Mock Exam Question)" Watch "Method / Bean Transaction (warning: HFE Master Mock Exam Question)" New topic
Author

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

Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
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

Joined: Jan 08, 2004
Posts: 41
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.


-peace.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Method / Bean Transaction (warning: HFE Master Mock Exam Question)