Re: multiple services in one vm?
Vinod Johnson <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
> > ------------------------------------------------------------------ > > Then I try to find my service: > > LookupDiscoveryManager mgr = new > LookupDiscoveryManager(LookupDiscovery.ALL_GROUPS, null, null); If your intent is to find your service (as opposed to finding reggie), then you should be using ServiceDiscoveryManager. > > When I run this all hell breaks loose in the log. Copying it below (much > longer on my screen) What is my problem? > > The log indicates that one of your interfaces (eth1) is not configured for multicast (it does not have any IP addresses bound to it). This is not necessarily a problem (the log is at HANDLED level). You may configure both LookupDiscovery and reggie (multicastInterfaces entry) to use only the interfaces that you desire. By all hell breaks lose, are you referring to these log messages, or is there any other misbehavior in your application? > > net.jini.discovery.LookupDiscovery$AnnouncementListener <init> > HANDLED: network interface is bad or not configured for multicast: > name:eth1 (Bluetooth-enhet (Personal Area Network) #2) index: 65540 > addresses: > > java.net.SocketException: bad argument for IP_MULTICAST_IF2: No IP > addresses bound to interface > at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) > at -------------------------------------------------------------------------- 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]