• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and JAR

 
Ray Cheeny
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am facing a very strange problem. I am using RMI for the network facilities. When i run my server application using the class files, everything works out fine.
However recently i created a server.jar with all the related files. When i run this server.jar, then the application comes up file, but gives a problem that it is unable to connect to the RMIRegistry, even though the RMIRegistry is running on the correct machine and the correct port. No such problems arise when i run the application using the class files.
I start RMIRegistry in my ConnectionDB(registry = LocateRegistry.createRegistry(port) . Is this acceptable.I do not use any codebase or permission file and it works fine in class files.
Pls help me as i can't figure out whats wrong
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,
Your description of what you are doing sounds the same as what I and others have done. Shouldnt be anything wrong with that.
Perhaps you could post the exact error message you are getting and/or the code snippet where you start the registry and bind to it?
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic