Re: multiple services in one vm?
Rikard Elofsson <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Organization | Superlocal |
| Message-ID | <[email protected]> |
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?
I get kilometers worth of logging like:
java.net.SocketException: bad argument for IP_MULTICAST_IF2: No IP
addresses bound to interface
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
at
java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
at java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:502)
at
net.jini.discovery.LookupDiscovery$AnnouncementListener.<init>(LookupDiscovery.java:1033)
> I've just submitted an update to the http://startnow.dev.java.net
> project to
> include an updated version of the org.wonderly.log.StreamFormatter
> class. You
> might try adding that do your logging configuration with
> java.util.logging.ConsoleHandler.formatter=org.wonderly.log.StreamFormatter
> and then adding startnow.jar to your service classpath. The output of the
> logging might be easier for you to sift through.
I'll give it a try! Thanks for the effort.
Regards
//Rikard
--------------------------------------------------------------------------
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]