Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 5797 invoked from network); 14 Jul 2009 21:01:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 21:01:07 -0000 Received: (qmail 91542 invoked by uid 500); 14 Jul 2009 21:01:16 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 91490 invoked by uid 500); 14 Jul 2009 21:01:16 -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 91480 invoked by uid 99); 14 Jul 2009 21:01:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 21:01:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of SRS0=9ebR4J=DH=wonderly.org=gregg@yourhostingaccount.com designates 65.254.253.78 as permitted sender) Received: from [65.254.253.78] (HELO mailout09.yourhostingaccount.com) (65.254.253.78) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 21:01:06 +0000 Received: from mailscan19.yourhostingaccount.com ([10.1.15.19] helo=mailscan19.yourhostingaccount.com) by mailout09.yourhostingaccount.com with esmtp (Exim) id 1MQp7F-0007zj-D7 for river-dev@incubator.apache.org; Tue, 14 Jul 2009 17:00:45 -0400 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan19.yourhostingaccount.com with esmtp (Exim) id 1MQp7E-0003oE-EL for river-dev@incubator.apache.org; Tue, 14 Jul 2009 17:00:44 -0400 Received: from authsmtp11.yourhostingaccount.com ([10.1.18.11]) by impout02.yourhostingaccount.com with NO UCE id Fx0j1c0080EKrUA0000000; Tue, 14 Jul 2009 17:00:43 -0400 X-EN-OrigOutIP: 10.1.18.11 X-EN-IMPSID: Fx0j1c0080EKrUA0000000 Received: from [74.213.10.66] (helo=[192.168.5.109]) by authsmtp11.yourhostingaccount.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim) id 1MQp7D-000161-HT for river-dev@incubator.apache.org; Tue, 14 Jul 2009 17:00:43 -0400 Message-ID: <4A5CF1FB.3070709@wonderly.org> Date: Tue, 14 Jul 2009 16:00:43 -0500 From: Gregg Wonderly User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: river-dev@incubator.apache.org Subject: Re: OSGi RFC 119 Distributed OSGi - (Was [RE: OSGi and Jini]) References: <4A44A1A1.4040201@zeus.net.au> <4A44EBA3.8030707@wonderly.org> <0CC21688-E720-40BB-8237-D47B4DEE4F48@wonderly.org> <4A4921FA.3030408@wonderly.org> <510143ac0907030226i22b4d6e9tf70857d357f115f4@mail.gmail.com> <964EAC824495234A86F3C47DA8BD8AAD1776B4@sucden-exch.sucden.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-EN-UserInfo: 5bac21c6012e8295aaee92c67842fba3:d1e94006e19829b2b3cf849ab9ff0f3c X-EN-AuthUser: greggwon Sender: Gregg Wonderly X-EN-OrigIP: 74.213.10.66 X-EN-OrigHost: unknown X-Virus-Checked: Checked by ClamAV on apache.org Dennis, can you add any additional information about how configurations of multiple things are put together in either single files, or how multiple files are integrated together? I do like the simplicity and the power of this. It might also be interesting to see if a Scala version would be interesting or have any different capabilities since there are additional language features there too. Gregg Wonderly Dennis Reedy wrote: > > On Jul 13, 2009, at 753AM, Tom Hobbs wrote: >> >> >> Someone on the Jini-Users (or similar, I can't quite remember) a while >> ago was talking about using Groovy classes to describe service >> configuration. Something like this sounds pretty neat, but anything >> that needs to be recompiled for changes can take affect is likely to be >> unworkable for obvious reasons. > > I brought up the Groovy config support. Rio has switched over from the > Jini configuration file approach to now use Groovy classes. No > compilation is required, the Groovy classes are parsed when loaded by > the GroovyConfiguration utility. A simple example of a Groovy > configuration for Reggie follows: > > @Component('com.sun.jini.reggie') > class ReggieConfig { > > String[] getInitialMemberGroups() { > def groups = [System.getProperty(Constants.GROUPS_PROPERTY_NAME, > 'rio')] > return (String[])groups > } > > String getUnicastDiscoveryHost() { > return java.net.InetAddress.getLocalHost().getHostAddress() > } > > }