About Question com.enthuware.ets.scbcd.v5.2.12 : Test 2 - question 45

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scbcd.v5.2.12 : Test 2 - question 45

Post by ETS User »

Hi,
I think explanations given with the answer are incorrects regarding the EJB 3 core specification :
You say :"but getCallerPrincipal() or isCallerInRole() cannot be called by an MDB. "
But the spec. says that we can call getCallerPrincipal() on MessageDrivenContext.
See table 3 p 117 of the spec. and the assertion on p 108 about MessageDrivenContext :"The getCallerPrincipal method returns the java.security.Principal that is associated with the invocation."

I agree that the caller is the container and not a client.

Furthermore, I think there is a mix-up in the explanation about MessageContext (for Jax-PRC Web services) and the MessageDrivenContext interface.

best regards,
Alex

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scbcd.v5.2.12 : Test 2 - question 45

Post by admin »

This has now been fixed.

thanks for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests