"rukus" wrote : Looks like only web.xml matters
  | security-constraint>
  |   |     <web-resource-collection>
  |   |         <web-resource-name>Server service</web-resource-name>
  |   |         <url-pattern>/*</url-pattern>
  |   |         <http-method>POST</http-method>
  |   |       </web-resource-collection>
  |   |       <auth-constraint>
  |   |         <role-name>testuser</role-name>
  |   |       </auth-constraint>
  |   |     </security-constraint>
  | and
  | @RolesAllowed 
  | annotation does no effect

This is because you're using a POJO endpoint. The annotation approach should 
work with an EJB3 endpoint.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105992#4105992

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105992
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to