Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security, JBoss.NET, EJB - No clue

Thomas Bauer
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

I'm using JBoss 3.2.6 with the jboss-net patch installed.
The JAAS Realm is a Database-Realm if that's important.


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic