JBoss Community

Re: @javax.annotation.security.RolesAllowed on EJBs does not work

created by herb in JBoss AS 7 Development - View the full discussion

I tried @RolesAllowed("BAD") and also @DenyAll does not work as expected (methods are invoked).

 

I added my simple test.war. Due to I'm a JBoss beginner, maybe I'm missing some basic stuff.

 

Here's the security-domain part of standalone.xml, which is referenced in the war:

 

<security-domain name="formauth" cache-type="default">

    <authentication>

    <login-module code="UsersRoles" flag="required">

        <module-option name="usersProperties" value="defaultUsers.properties"/>

        <module-option name="rolesProperties" value="defaultRoles.properties"/>

    </login-module>

    </authentication>

</security-domain>

 

Thanks, herb

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community