Hi friends
I have one doubt for the exam.
It regards EPractize Labs' Question 50 of Mock Exam 3 on the subject of implementing security.
The print screen of the question is in attach.
The lab says D and E are the correct answers.
In my opinion choosing D and E is a contradiction in terms.
With answer D, javax.annotation.security.RollesAllowed annotation there is overriding. " If applied at both the class and methods level , the method value overrides the class value if the two conflict" -
https://docs.oracle.com/javaee/6/api/javax/annotation/security/RolesAllowed.html
With answer E, <method-permission> of ejb.jar.xml there is union - "The method permissions relation is defined as the union of all the method permissions defined in the individual method-permission elements." - pag 495 of
http://download.oracle.com/otn-pub/jcp/ejb-3.1-fr-eval-oth-JSpec/ejb-3_1-fr-spec.pdf?AuthParam=1420603814_a14da73103af4bd19350064fcae1e929
My guess is the correct answer is C and D.
Does anybody has an opinion regarding this question?
Thank you in advance,
FR