This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use isUserInRole in jboss

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
Simple question , how can I use isUserInRole when user making request to the jboss server via ejb3 /jndi
Something like request.isUserInRole in tomcat
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean, you want to check whether the user is in some role, inside an EJB? There's a API isCallerInRole on the SessionContext which you can use in the EJB. Here's the API
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic