Return-Path: Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: (qmail 82983 invoked from network); 18 Jun 2009 12:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 12:48:44 -0000 Received: (qmail 1414 invoked by uid 500); 18 Jun 2009 12:48:55 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 1346 invoked by uid 500); 18 Jun 2009 12:48:54 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Delivered-To: moderator for user@tuscany.apache.org Received: (qmail 91364 invoked by uid 99); 18 Jun 2009 12:46:48 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of a.pecherin@gmail.com designates 209.85.216.187 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=DPHlHD1ODyWFSx/5/JfGo4Oep46tKXtJXvRrpHiILXo=; b=ti3VyUkZS8lOF1cvDZgM5k7/JjK0iIgsr+8rXUh5SlSDuj6MT2OLWl8UKgg1QfibZl DcheWVjBCpcWEhfLa4edhnbZXwY11s1CPMqybB/5dLNpj7EWq9yTorr91IrI2EWX0r3+ nYUuH+uTpoZnwfAFdBPvUJqCf1YIrVxmt2Kd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=LF6qKGqpuZaB/a0vIgwuUbBb+TV+cVEVpb4nuQWNdjjXumvDuYzUfvf4xEBfHZXcl+ j4fSTO39KugWQ9tm7tnCjxeBpA6+6hHl5yJzB8Lok3fzKI9ivtwnGanKfOp1tiJMItNt JQ0FOt1KjAczZgXeg6ucc8FQdUpIs4LThfArQ= MIME-Version: 1.0 Date: Thu, 18 Jun 2009 18:46:20 +0600 Message-ID: <7685084a0906180546i5baf382cg4b88fe9193ae010d@mail.gmail.com> Subject: Re:Policy and security subject From: =?UTF-8?B?0J/QtdGH0LXRgNC40L0g0JDQvdCw0YLQvtC70LjQuQ==?= To: user@tuscany.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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