Hi all,

I have generated my implementation class from a WSDL and added the
following method:

private MessageContext msgCtx=null;

public void init(MessageContext ctx){
      msgCtx=ctx;
      System.out.println("init called..context:"+ctx);
}

But, the init method is never called!! (I checked the service logs for
output, and I see other System outs). Due to that the service methods throw
a null pointer exception when trying to access msgCtx.

I read somewhere that a MessageReceiver is supposed to call the init
method. WSDL2Java generates a custom message receiver for every service
(Axis Data binding). I looked inside my message receiver and it does not
seem to be making any calls before calling the service methods except this
one:

//Inject the Message Context if it is asked for
org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider
(obj, msgContext.getOperationContext());

Any clues why init is not being called?

Thanks,

-Nirmit


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to