Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 34869 invoked from network); 9 Feb 2010 10:58:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 10:58:14 -0000 Received: (qmail 16938 invoked by uid 500); 9 Feb 2010 10:58:14 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 16884 invoked by uid 500); 9 Feb 2010 10:58:14 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 16874 invoked by uid 99); 9 Feb 2010 10:58:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 10:58:13 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [61.9.168.146] (HELO nskntmtas04p.mx.bigpond.com) (61.9.168.146) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 10:58:05 +0000 Received: from nskntotgx01p.mx.bigpond.com ([123.208.32.95]) by nskntmtas04p.mx.bigpond.com with ESMTP id <20100209105744.NKJO7715.nskntmtas04p.mx.bigpond.com@nskntotgx01p.mx.bigpond.com> for ; Tue, 9 Feb 2010 10:57:44 +0000 Received: from [10.168.44.53] (really [123.208.32.95]) by nskntotgx01p.mx.bigpond.com with ESMTP id <20100209105742.JDYJ1945.nskntotgx01p.mx.bigpond.com@[10.168.44.53]> for ; Tue, 9 Feb 2010 10:57:42 +0000 Message-ID: <4B713FA5.7090808@zeus.net.au> Date: Tue, 09 Feb 2010 20:57:41 +1000 From: Peter Firmstone Organization: Zeus Project Services User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: river-dev@incubator.apache.org Subject: Re: Service Wrapper Example References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150201.4B713FA7.0122,ss=1,fgs=0 Hey, thanks Tom, there's still some life in River yet old mate, off to bed now so I'll have a look in the morning. Cheers, Peter. Tom Hobbs wrote: > Hi, > > I mentioned in another thread that I had come across code which provides > service fail over and auto-rediscovery. I've posted details of the kind of > code that was used to (note this has been reinvented in my head just now and > only loosely tested); > > http://wiki.apache.org/river/AutomaticServiceReplacement > > I hope that someone finds it useful and/or interesting. > > It's important to note that in the interests of simplicity the > ServiceWrapper class in the article is explicitly linked to the dummy > service described. Obviously using more reflection magic it's possible to > remove this linkage so that ServiceWrapper can wrap any service you like and > it's invoke method would invoke the method supplied to it, rather than the > only method available in the dummy article. > > Thanks to Jukka for his Wiki account suggestion. > > Enjoy, > > Tom > >