Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing user principal information to EJB from web  RSS feed

 
nibla jose
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a web container implemented by one vendor and the ejb container implemented by another vendor. How can I pass my user information after authentication in web container to the EJB container? This is urgent. please help. What difference does it make when both the containers are implemented by the same vendor? Is there anything in the EJB spec which deals with this?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not entirely simple - web app security and JEE security are an odd and uneasy couple. Reading Using JAAS in Java EE and SOA Environments may give you some ideas.
 
nibla jose
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,

That link was a lot helpful. Thank you. few more clarifications.
Does all this mean that if we are using two vendors for web app and EJB we dont have a standardised mechanism to pass the JAAS context to the EJB?
How does it happen now for default? Anything in the spec?
The jaas context seems to be a thread specific storage in the web app right? Will this go to the ejb layer automatically when we are using the same vendor for both layers?
What have the 'username' and 'password' in JNDI initial properties, got to do with this? Any relation?
Please help me with this..
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!