It's not a secret anymore!*
The moose likes Distributed Java and the fly likes How Run Two Jini Lookup Services on Same Computer For Testing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How Run Two Jini Lookup Services on Same Computer For Testing?" Watch "How Run Two Jini Lookup Services on Same Computer For Testing?" New topic
Author

How Run Two Jini Lookup Services on Same Computer For Testing?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I want to run two different lookup services on the same computer. But here's the thing:
1. I do not want them to find each other UNLESS I explicitly ask them to (i.e. Unicast)
I know this is a problem because the LookupServices all do multicast discovery and discover the "near" services. How do I start two diff. lookup services and ensure they won't find each other?
2. I want to start services on each lookup, but make sure it's unicast discovery for the services (normally i wouldn't do unicast, but I want to be sure Service A is only on Lookup A, and Service B only on Lookup B)
Thanks!
(Oh, I know that jini addresses ignore all "sub-folders" of an address, so it's impossible to map a jini lookup service to jini://1.1.1.1/Jini, it would treat this as jini://1.1.1.1 what does this mean for doing lookups on the same IP with diff. ports? Does it treat them as the same? - I'm assuming no)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Run Two Jini Lookup Services on Same Computer For Testing?
 
Similar Threads
java.rmi.ServerException etc
Something like JINI
JNDI and JINI
What's the point with Dynamic Downloading???
Making Jini servers easier and lighter