I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
// store the message contexts
System.out.println("init message called"); //
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}
public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message
called ****"); // not seen in output
}
In my method
String getRecord(int id){
System.out.println("message context ****:"+
MessageContext.getCurrentMessageContext());
}
getRecord when called from webservices
the only sys out I see is message context ****:null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril