Hi everybody!!!
I have a client code that have 2 calls. One of them is blocking and other
nonblocking.
Part of my code is writing as follow:
synchronized (callback)
{
if (!ClienteServico.finish) {
//callback.wait(1000);
initb = System.nanoTime();
//blocking invocation
resultado =
emissor01.sendReceive(payload01);
System.out.println(" -->
Localization: "+ urlremoto01);
response =
result.getFirstElement().getText();
LINE X -> MessageContext msg =
MessageContext.getCurrentMessageContext();
LINE Y -> SOAPBody soapBody =
msg.getEnvelope().getBody();
fimb = System.nanoTime();
resultadobloc =
Double.toString((double)(fimb-initb)/1000000000);
System.out.println("Esperando
callback");
callback.wait();
System.out.println("Fim do callback");
}
As you can see, I am calling a sendreceive (blocking) into a callback (which
takes care of nonblocking invocation). As there are two messages, they are
in differents contexts. Am I right? I would like to know how to capture
messagecontext of the sendreceive (blocking)? Is it possible?
I ask it, because when I compile my program the lines X and Y are not called
and I have an error like:
java.langNullPointerException
Someone could help me?
Thanks a lot.
Julio
--
View this message in context:
http://www.nabble.com/How-to-capture-Message-Context-in-sendReceive-%28Blocking%29-call-tf4838078.html#a13841248
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]