cancel
Showing results for 
Search instead for 
Did you mean: 

Caller Identity in EJB SessionContext

Former Member
0 Kudos

Hi all,

I'm looking for a way to get the user context from stateless and stateful session beans. I tried many things and found out that the value returned by

SessionContext.getCallerPrincipal().getName()

seems to be the logon ID of the UME User. However, I'm not completely sure about this.

Does anyone know how to retrieve the UME User out of the SessionContext?

Thanks in advance.

Best regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi David,

This is exactly the way to retrieve the UME User ID from within a session bean (actually also for any kind of EJB).

Cheers,

Vladimir

Former Member
0 Kudos

Hi Vladimir,

Thanks a lot for this quick and precise answer!

Best regards,

David

Answers (0)