Hi Deepal!

Thanks for help! 

How could I to do it?

Could you show me how to do with an example?

Thanks a lot.

Julio



Deepal Jayasinghe wrote:
> 
> Hi ,
> From the service client you can get the operation context , and once you
> have the operation context you can get both message contexts.
> 
> Thanks
> Deepal
> 
> juliocest wrote:
>> 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
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-capture-Message-Context-in-sendReceive-%28Blocking%29-call-tf4838078.html#a13855572
Sent from the Axis - User mailing list archive at Nabble.com.


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

Reply via email to