|Re: How to implement Remote Observer Pattern with Riena? [message #648387 is a reply to message #646768]
||Wed, 12 January 2011 11:28
| Christian Campo
Registered: July 2009
Am 30.12.10 21:57, schrieb Hendy Irawan:|
> Examples I've seen above Riena OSGi services seem to involve only RPC
> style calls.
> Is it possible to implement Remote Observer pattern, especially
> asynchronously? i.e. register the client object(s) as an observer of an
> observable object on the server. And when the server want to update the
> client, it triggers the observer(s) method, potentially asynchronously
> / non-blocking.
> Here's an example of how I did it with Apache Camel:
> http://spring-java-ee.blogspot.com/2010/01/advanced-event-no tification-
> but I'm not sure about Riena.
> Thank you.
Riena currently only supports making RPC calls. There is no remote event mechanism. Also the server is usually stateless
which means that no object held for a user on the server. Therefore there is no object that can be observed. The
advantage and reason is that it make the system very scaleable since every RPC call can be answered by a different
Maybe the current implemented mechanism can be extended, or you implement a new remote service provider for Camel or
just directly use the Riena UI with the Apache Camel implementation you wrote.
hope that helps, if not let me know
Powered by FUDForum
. Page generated in 0.05669 seconds