Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat application connection problem with RMI

 
Venkatesh Rajendran
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an application in Tomcat server, from which I am accesing a RMI server, which serves me some data, if I access through RMI default port it returns me the requested data, but if I access through some other port like 2005, it does not. Any one come across such situation, i request you to pass me some information on this.

Thanks in advance.

Regards,

Venkat
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you setting up the RMI server to use that port?
Bill
 
Venkatesh Rajendran
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your response. I am binding the object using following command,

Naming.bind("//12.22.123.232:2005/ServerObj", servObj);

Similarly I am looking up for the same port from client side like,

Naming.lookup("//12.22.123.232:2005/ServerObj");

I am also starting RMI registry to look for the same port only like,

LocateRegistry.createRegistry(2005);

Thanks in advance.

Venkat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic