This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

login context propogation from WEB to EJB  RSS feed

 
Ryan Fernandes
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using my custom login module for authentication (in the web tier).
[ LoginContext lc = new LoginContext("myCustomDomain"); ...]

I have no security settings in my descriptors. The above is purely for authentication.

Now, when I lookup an EJB; and call EJBContext.getCallerPrincipal() I would like the Principal that is in the Subject of my Login Context lc above.

This this possible?

Thanks in advance for any insight.
-Ryan
I
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!