tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Печерин Анатолий <a.peche...@gmail.com>
Subject Re:Policy and security subject
Date Thu, 18 Jun 2009 12:46:20 GMT
Hi Alexander

if tuscany ws implementation is axis2 => jax-ws supported => try this code:

@Resource
    private WebServiceContext ctx;
......
@WebMethod
    public someMethod(){
        MessageContext mc =(MessageContext) ctx.getMessageContext();
        Set<Principal> ps=null;
        try {
            ps = SubjectAccessor.getRequesterSubject(ctx).getPrincipals();
        } catch (XWSSecurityException ex) {
            Logger.getLogger(UserService.class.getName()).log(Level.SEVERE,
null, ex);
        }

it's work in Glassfish

Mime
View raw message