OK...but how can I access ConfigurationContext in CallbackHandler class? Is there a way?
On Thu, May 5, 2011 at 10:21 PM, Sagara Gunathunga < sagara.gunathu...@gmail.com> wrote: > On Thu, May 5, 2011 at 5:03 PM, Chinmoy Chakraborty <cch...@gmail.com> > wrote: > > 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(); > > } > > Above code is invalid in the context of CallbackHandler. The purpose > of CallbackHandler is to deal with passwords and not possible to > access MessageContext/ConfigurationContext in CallbackHandler class. > > Thanks ! > > > 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 > > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://people.apache.org/~sagara/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > For additional commands, e-mail: java-dev-h...@axis.apache.org > >