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

RMI Server

 
Akash Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one write how to find out whether RMI server is running or not on a machine with a particular port; without looking for a bound object ?
Regards,
Akash
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11854
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akash,
Tried and true method: ask the administrator!
Technically, just asking for a list of bound objects would meet your stated requirements, but I don't think that gives you anything over looking for a particular bound object.
Regards, Andrew
 
Akash Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Andrew.
 
Arjan Broer
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Akash Singh:
Can any one write how to find out whether RMI server is running or not on a machine with a particular port; without looking for a bound object ?

If you just want to find out if the rmi server has started you could telnet to the server with the specified port.

If the connection is refused than no service was running on this port.
Ofcourse this is not usable in Java code, but it could solve some debugging problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic