Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login context propogation from WEB to EJB

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

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic