• 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
Posts: 12056
232
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!