[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Remote service question

On 21.10.14 18:00, ecf-dev-request@xxxxxxxxxxx wrote:
From: Wim Jongman <wim.jongman@xxxxxxxxx>

Alternatively, you could setup two services, one on each end.

The server sets up RequestService#Request(Request request)
The client sets up CallBackService#DeliverResults(Request originalRequest,
Whatever result)

When the server has finished processing the request it calls back the
client with the original request and the result.

On top of that, both calls can be done async.

Yes, this is good idea, particularly if you want something more like streaming, since you don't need to have the same number of calls in each direction.


In Akka you can ask for the sender. Is there anything similar in ECF, so you don't need to discover the (host of the) callback service?

Hallvard


Cheers,

Wim


On Mon, Oct 20, 2014 at 10:04 PM, Scott Lewis <slewis@xxxxxxxxxxxxx> wrote:

On 10/20/2014 12:28 PM, Hallvard Tr?tteberg wrote:

<stuff deleted>


Yes, this was what I was thinking of. The advantage is that the framework
does a bit more for you, and you 'reuse' the async interface that you
already defined for the caller.


Right. It may very well make sense to create a new/customized distribution provider to do this for you, and ECF's provider architecture makes this very natural (e.g. you could even very simply extend an existing provider).

If you decide it would be worth it to do this we can certainly continue
technical/implementation discussion in those directions (new/extended
distribution provider).   Just let me/all know.

Scott


_______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/ecf-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/ecf-dev/attachments/20141021/ec426cad/attachment.html>

------------------------------

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev

End of ecf-dev Digest, Vol 111, Issue 20
****************************************


-- Hallvard Traetteberg, Associate Professor Dept. of Computer and Information Sciences (IDI) Norwegian University of Science and Technology (NTNU)