axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinmoy Chakraborty <>
Subject How to get ConfigurationContext in password callback class?
Date Thu, 05 May 2011 11:33:57 GMT

I need to access ConfigurationContext in a password callback class
(implements CallbackHandler). How I can achieve that? I tried following

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?


View raw message