It's not a secret anymore!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI Server" Watch "RMI Server" New topic
Author

RMI Server

Akash Singh
Ranch Hand

Joined: Aug 21, 2003
Posts: 80
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

Joined: Mar 28, 2003
Posts: 11490
    
  95

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Akash Singh
Ranch Hand

Joined: Aug 21, 2003
Posts: 80
Thanks Andrew.
Arjan Broer
Greenhorn

Joined: Dec 20, 2002
Posts: 20
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RMI Server