Re: Newbie: Asynchronous messaging in CORBA -- is it possible?



On Tue, 2001-10-30 at 23:46, Edgar Hilton wrote:
> Hi! I'm a newbie, so please be gentle.
> 
> What is the best way to do the following?
> 
> I have a set of clients and one server using ORBit + C.
> 
> Clients are able to reference all the appropriate objects from the
> server without any problems.  
> 
> The question is: how can I get the server to trigger some action in
> select clients? For example, let's say that I am sitting at the server
> machine, and want several of the clients to refresh a list of
> parameters.  How can I do this?
> 
you can do it by using listeners, something that is widely used in
GNOME.

For instance, you could have:

interface Server {
	void connectClient (in Client client);
};

interface Client {
	void notify (...);
};

and have the Client interface be implemented in the client-side, so that
it can receive notifications from the server.

cheers
-- 
Rodrigo Moya <rodrigo@gnome-db.org> - <rodrigo@ximian.com>
http://www.gnome-db.org/ - http://www.ximian.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]