axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: axis2 - asynchronous messaging
Date Tue, 02 May 2006 09:45:58 GMT
Hi Deepal,

I've got just a question after your explanation: how can B forward the
message to node N? I mean, which header should B modify/set to obtain
that result (please note also that several N nodes can exist, but only B
is aware of that)?


Thanks in advance,
Michele

Deepal Jayasinghe wrote:
> Hi Michele ;
> 
> I am sorry for late reply.
> pls see my in line comments
> 
> Michele Mazzucco wrote:
> 
>> Hi all,
>>
>> I would like to use the callback features, but my architecture uses a
>> piece of software acting like a "broker" to handle incoming requests:
>>
>>
>>       A              B
>> Client ----------> Broker ---------> Node satisfying the request (N)
>>  |                     |
>>  |                             |
>>  |          C (reply)         |
>>  <---------------------------------------
>>
>>
>> Can the node N use the callback to return the result to the client?
> 
> yes it can , but as I understood without using callback you can achieve
> the same goal,  correct me if im wrong
>   step1:
>     A send a request to B by putting address of B as TO and Address of A
> as ReplyTo , and invocation of the A should be sendReceiveNonBlocking
> 
>   strp 2 :
>    When B gets the req and it does whatever processing and forward that
> to Node N and that invocation can be  fireAndForget invocation (B will
> not change replyTo address)
>   step 3:
>    Once N get the request it will process the message and send the
> response to A since message has replyTo address.
>    (if the invocation at the N takes long time , then you can use
> AsyncMessageReciver , which uses call back inside that)
> 
>> If no, what should I do? Could fireAndForget() messages (A, B and C)
>> be fine (in case together with options like relatesTo, messageId, etc.)?
> 
> If A is client running inside a Server then you can just call
> fireAndForget at A , by putting replyTo addresses as server address.
> 
>> Any suggestions are welcome.
>>
>>
>>
>> Thanks in advance,
>> Michele
>>
>>
> 

Mime
View raw message