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
>
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



Reply via email to