• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use isUserInRole in jboss  RSS feed

 
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
Sheriff
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
Boost this thread!