Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't show my name/remote object bindings

 
Karl Fu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the LocateRegistry to create registry in the server and get registry reference in my client app. (I did not use web server for my testing)
My rmi works fine when files are placed in a Client folder and Server folder. They are also working when I add a download folder using the dynamic class loading.
But when i try to show my current binding of my registry. Nothing is shown and as if there is no binding at all.
Server:
<<using local host and default port>>
Registry reg = LocateRegistry.createRegistry() ;
reg.rebind("RemoteDbObj", remoteObj);
String [] = reg.list();
print String[]............
Client
Registry reg = LocateRegistry.getRegistry();
reg.list();
print String []............
In both server and client...no binding is shown..
Can anyone explain me why ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic