Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Jini Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Hi, > I am able to bring up http, rmid, reggie...register a service > (I have replaced my actual IP with 11.11.11.11 for this question) > .all -classpath .;C:\files\jini1_1\lib\jini-core.jar;C:\files\jini1_1\lib\jini- > C:\rmi\jiniclient\build> > Here is the client code: > public static void main(String[] args) throws Exception { > System.setSecurityManager( new RMISecurityManager()); > LookupLocator lookUp = new LookupLocator("jini://11.11.11.11"); > ServiceRegistrar registrar = lookUp.getRegistrar(); > ServiceID id = registrar.getServiceID(); > System.out.println ("client: ServiceRegistrar = " + registrar); > System.out.println ("client: ServiceID = " + id); > Entry[] attributes = new Entry[1]; > ServiceMatches matches = registrar.lookup(new ServiceTemplate (null, null, attributes),50); > ServiceItem item = (ServiceItem)matches.items[0]; > AddService proxy = (AddService)item.service; > System.out.println("Object is: " + proxy.toString()); > System.out.println ("Result is: " + z + "\n"); > Any help would be appreciated. |
Sponsored Links
|