Posted By:
Nick_Maiorano
Posted On:
Monday, December 22, 2003 08:33 AM
Mr Guru,
Yes, having clients register themselves to the server to receive notifications is a pretty tried-and-tested way of doing things. It will work very well.
But since you asked, there are slight variations to this theme that you can apply. If, for example, you want to decouple the client from the server, that is, you don't want the client and server to know each other, you can use a broker. The server would send notifications to the broker which, in turn, would send notifications to all clients that are registered to the broker. This, in effect, is the basic principle of a message queuing system such as JMS in J2EE.