For someone not proficient with EJB (which is me), the question is confusing. The statement "method2 throws exception" came to me as "throws a checked exception when executed" or maybe "declared with throws Exception". After that, the whole question made little sense to me.
Perhaps, changing the text to "container throws an exception" or even "throws TransactionRequiredException" wouldn't be too much of a hint?
About Question enthuware.oce-ejbd.v6.2.493 :
Moderator: admin
Online
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.493 :
The figure has now been updated to make it clear that methodA receives an exception.
thank you for your suggestion!
thank you for your suggestion!
Re: About Question enthuware.oce-ejbd.v6.2.493 :
In the explanation it says that for method1 it could be the mandatory value, but in that case it will give an exception, like on method2!
Online
HTH,
Paul.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.493 :
I think you misinterpreting the explanation. It is trying to deduce the final answer by starting with the more possibilities and then eliminating the ones that do not satisfy all the conditions. That's why in the next sentence, it says, "However, its caller does not have any transaction context. Therefore, the value cannot be Mandatory or Supported. "user wrote:In the explanation it says that for method1 it could be the mandatory value, but in that case it will give an exception, like on method2!
HTH,
Paul.
Re: About Question enthuware.oce-ejbd.v6.2.493 :
You're right, sorry, this means too many hours studying without a break :\ I dind´t read it right.
Thanks!
Thanks!
Who is online
Users browsing this forum: No registered users and 10 guests