[jboss-user] [EJB3] - Re: Can't get SessionContext.isCallerInRole(...) to work from remote call.
Wolfgang Knauf
do-not-reply at jboss.com
Thu May 5 06:03:54 EDT 2011
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion
"Re: Can't get SessionContext.isCallerInRole(...) to work from remote call."
To view the discussion, visit: http://community.jboss.org/message/603636#603636
--------------------------------------------------------------
Hi Krister,
two things that come into my mind:
a) does your EJB have any "secured" method?
@RolesAllowed(value={"administrator"} )
public void myMethod()
{
}
Maybe you have to add such a security declaration to "checkRole". Otherwise JBoss might think that you are accessing unsecured content and is not performing login.
b) did you activate logging of the security layer? See http://community.jboss.org/docs/DOC-12198 http://community.jboss.org/wiki/SecurityFAQ - question 4. If there is some config error, this might help.
The rest of your config looks OK.
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/603636#603636]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110505/e175ff36/attachment.html
More information about the jboss-user
mailing list