• Post Reply Bookmark Topic Watch Topic
  • New Topic

How is EJBContext info set in Web Apps?  RSS feed

 
Rich Bush
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tasked with learning how to pass credentials from a Web Application to a custom built Authentication/Authorization EJB. Because I am a beginner with the presentation layer stuff I am struggling to understand how the EJBContext information gets set. I don't want to just rely that the user typed the correct userId/Password, I also want to know info as to the workstation that is using the Web App (something like ip address)
Does anyone have a good reference for beginners, or maybe even provide me with some input on this?
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rich,
You should move your question to the EJB and J2EE Thread
Basically, the container is aware of the credentials if an authentication mechanism has been used.
So if you enforce your web app user to login, then both Servlet and EJB container will be able to access security credentials through their context.
You can find further information about J2EE security in the J2EE tutorial, chapter 32. It explains security in details.
hth
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this thread to the Servlets forum. Please continue this discussion there. Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!