Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A6172FA9 for ; Thu, 5 May 2011 11:34:28 +0000 (UTC) Received: (qmail 7469 invoked by uid 500); 5 May 2011 11:34:25 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 7036 invoked by uid 500); 5 May 2011 11:34:25 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 7019 invoked by uid 500); 5 May 2011 11:34:25 -0000 Delivered-To: apmail-ws-axis-user@ws.apache.org Received: (qmail 7014 invoked by uid 99); 5 May 2011 11:34:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 11:34:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cchinu@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 11:34:17 +0000 Received: by wyb28 with SMTP id 28so2268363wyb.22 for ; Thu, 05 May 2011 04:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=dwYVkmeYbQOIncQhxjKXGv1VhMiwlk7VTsEGJvxWBRQ=; b=PE9AdXs+iWoAcCs78Lfkuuc+ui8H7NDSACrrPlnkWAv5gegcuxSoqrR9gpY4sQ8pEI YV8Ta4LXmK/hkoOwTqGcNE5Tegkjhk0ZXma5TFKg/9CTsenLTLOWTAlhGkf2nwNgur4m OegHO0A0tiR7xD+gRFYvN6B14coXtdXGsN4Xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gZuZgRSD2Jt3AH7drbSWOA6zvfIn88wToZOoptul0NF35CZ0AqoNheJ5579d7cph6T Tpfmp35ru7Z40cTAJMr75PkSey7Hg/WlQIupO9QoALrTDozkb1tYPAxFa/4ciCK0i2oZ XApPsc7NJSUzhLFuJFVpX+C3LXFDDdGzLBK8M= MIME-Version: 1.0 Received: by 10.227.59.210 with SMTP id m18mr2370620wbh.112.1304595237510; Thu, 05 May 2011 04:33:57 -0700 (PDT) Received: by 10.227.156.17 with HTTP; Thu, 5 May 2011 04:33:57 -0700 (PDT) Date: Thu, 5 May 2011 17:03:57 +0530 Message-ID: Subject: How to get ConfigurationContext in password callback class? From: Chinmoy Chakraborty To: axis-dev@ws.apache.org, axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=0015174ff312b5201004a285bf05 X-Virus-Checked: Checked by ClamAV on apache.org --0015174ff312b5201004a285bf05 Content-Type: text/plain; charset=ISO-8859-1 Hello!! I need to access ConfigurationContext in a password callback class (implements CallbackHandler). How I can achieve that? I tried following code: MessageContext msgCtx = MessageContext.getCurrentMessageContext(); ConfigurationContext configCtx = null; if (msgCtx != null) { configCtx = msgCtx.getConfigurationContext(); } but in above scenario MessageContext is always null which is I guess expected. The reason I wanted to do that is I want to share a custom attribute there. I also can do that in ServletContext also. Any idea? Chinmoy --0015174ff312b5201004a285bf05 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello!!

I need to access=A0ConfigurationContext in a pas= sword callback class (implements CallbackHandler). How I can achieve that? = I tried following code:

MessageContext msgCtx= =3D MessageContext.getCurrentMessageContext();
=A0 =A0 ConfigurationContext configCtx =3D null;
=A0 =A0 if = (msgCtx !=3D null) {
=A0 =A0 =A0 configCtx =3D msgCtx.getConfigur= ationContext();
=A0 =A0 }

but in a= bove scenario MessageContext is always null which is I guess expected. The = reason I wanted to do that is I want to share a custom attribute there. I a= lso can do that in ServletContext also. Any idea?


Chinmoy
--0015174ff312b5201004a285bf05--