Re: Scripts and lookup groups
Brian Murphy <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
On 4/4/07, Logan, Patrick <[email protected]> wrote: > The startup scripts in bodega support different protocols. Each > protocol-specific script hard codes the lookup group names for that > protocol. > > I'd like to be able to start up services for any of those purposes > each with their own lookup group I'm assuming you're using the top-level 'jrun' script that bodega provides for starting things. If that's the case, have you tried using the '-groups' argument? That argument is designed to allow one to override the default group names from the command line; which I think is the sort of thing you're wanting to do. For example, in 4 separate windows, you might type the following: >>> jrun jsk reggie -mGroups myGroup1 myGroup2 >>> jrun jsk browser -groups myGroup1 >>> jrun jsk outrigger -groups myGroup1 >>> jrun jsk mahalo -groups myGroup2 This will start a lookup service having member groups of 'myGroup1' and 'myGroup2'. The other commands start a browser, a JavaSpace, and a TransactionManager. Because the lookup service is a member of both group 'myGroup1' and group 'myGroup2', the browser, the JavaSpace and the TransactionManager will each discover that lookup service because the browser and the JavaSpace will discover 'myGroup1', and the TransactionManager will discover 'myGroup2'. Note the '-mGroups' argument for reggie. The '-mGroups ' argument exists so one can also specify a '-groups' argument for the lookup service as well. Thus, the '-mGroups' argument specifies which groups the lookup service is a member of (that is, the groups that clients and services will discover); whereas the '-groups' argument for the lookup service specifies which groups of *other lookup services* that this particular lookup service will attempt to discover and join. Finally, typing '>>> jrun -help' will display a number of other options offered by the script. I hope this helps, Brian -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]