[jboss-user] [JBossWS] - Re: Web Service URL pattern
skajotde
do-not-reply at jboss.com
Sun Aug 17 06:53:38 EDT 2008
You can apply annotation @RolesAllowed, eg.:
holder for auth roles constant:
public class Roles {
| private static final XXX = "033";
|
| }
and in Webservice:
@WebMethod
| @RolesAllowed(Roles.XXX)
| public void youMethod(....
This annotation is same as in EJB and use JAAS to configuration.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170943#4170943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170943
More information about the jboss-user
mailing list