Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Jini & serviceRegistrar problem

Thread view: 
Mr. X. - 03 Jul 2007 00:48 GMT
I am using JINI with Javaspace (I am doing a whiteboard).

In my code, I did :

...

import java.net.MalformedURLException;

import java.io.*;

import net.jini.space.JavaSpace;

import net.jini.core.entry.Entry;

import net.jini.lookup.entry.Name;

import net.jini.core.discovery.LookupLocator;

import net.jini.core.lookup.ServiceRegistrar;

import net.jini.core.lookup.ServiceTemplate;

...

LookupLocator locator;

ServiceRegistrar registrar;

....

locator = new LookupLocator(" ... ");

registrar = locator.getRegistrar();

and I got an IOException after the above line.

What should I put at the line : locator = new LookupLocator(" ... ");
and what is a valid url that I should put on the lookupLocator,
and should I run tomcat on my computer (or one of the computer, that joins
the group) ?

Need example, please.

Thanks :)
Mr. X. - 03 Jul 2007 09:28 GMT
> locator = new LookupLocator(" ... ");
Indeed I did :
locator = new LookupLocator(" jini://localhost");

but still I have the problem of IOException, as mentioned.

Thanks :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.