geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Jiang <>
Subject Re: failover demo in sandbox
Date Wed, 03 Feb 2010 08:57:28 GMT
On Fri, Jan 22, 2010 at 2:49 AM, David Blevins <>wrote:

> On Jan 20, 2010, at 12:15 AM, Kevan Miller wrote:
>  3) Geronimo currently requires multicast for the failover scenario. This
>> is great. However, we should also offer unicast-based support, also. I
>> frequently encounter users who are unable to use multicast in their
>> environments. Providing unicast support would be a valuable addition, I
>> think.
> Agreed.
> Currently with the way that everything is designed we theoretically only
> need to replace this class:
> Which is an implementation of the DiscoveryAgent interface.  The primary
> job of the DiscoveryAgent is to receive notifications about services coming
> and going and then simply notify the other parts of the system that are
> interested in this information.  These "other parts" implement this
> interface:
>  public interface DiscoveryListener {
>      public void serviceAdded(URI service);
>      public void serviceRemoved(URI service);
>  }
> So basically the new DiscoveryAgent needs to have a way to receive "service
> added" and "service removed" messages and send that info to the listener.
> It seems that a REST implementation of DiscoveryAgent would be very useful
> as a lot of shops use it quite extensively already for various
> administration and it actually lines up pretty close.  ServiceAdded might be
> a PUT and serviceRemoved a DELETE.
> Seems with something that simple it wouldn't be too hard to do anything
> else that's required to get it to broadcast around.

There are some discussions before that we should use WADI instead of
discoveryAgent to track cluster nodes.

I would like to give it a try instead of implementing another discovery

> -David


View raw message