This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a Stateless SesionBean that acts as facade to my other EJBs. I have deployed a .wsr with a deployment deskriptor that allows WEBService access to the methods of my facade. I also configured authentication for my webservice using jaas, as follows (out of my web-servce.xml):
I have not configured any security related stuff for my EJBs. I've written a client that accesses this webservice and everything works fine (I need to supply a username/password).
Now my question: What are the steps to get information in my EJB Method about who logged in. As an example:
How would I do this?
FYI: I'm using JBoss 3.2.6 with the jboss-net patch installed. The JAAS Realm is a Database-Realm if that's important.