Re: multiple services in one vm?
Vinod Johnson - Sun Microsystems <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Rikard Elofsson wrote: > Gregg Wonderly skrev: >> As Vinod said, this creates a mechanism for finding instances of >> ServiceRegistrar (probably Reggie since that is what you started). > > I was a bit unclear there, sorry about that. Anyways, after some more > checking it becomes clear that my code actually works even in a single > VM, the output just got lost in all log output (sorry for the waste of > time and space but it felt a bit hopeless there). Anyway - most of my > logging problems seem (at this point) to come from that my code (or > LookupDiscovery) soemhow wants to run multicast on all eth devices. How > do I specify which interfaces I want it to run on? Vinod hinted about > this, anybody please point me in the right direction? For configuring reggie see the com.sun.jini.reggie package javadocs (http://java.sun.com/products/jini/2.1/doc/api/com/sun/jini/reggie/package-summary.html). You must set the 'multicastInterfaces' configuration NetworkInterface[] entry to contain only those NetworkInterfaces that you are interested in. Same goes for LookupDiscovery (or LookupDiscoveryManager). http://java.sun.com/products/jini/2.1/doc/api/net/jini/discovery/LookupDiscovery.html The Configuration object that you pass in must contain a multicastInterfaces entry as described above. -- - vinod -------------------------------------------------------------------------- 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]