aspose file tools*
The moose likes Distributed Java and the fly likes How to check whether the RMI Server is running or not ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to check whether the RMI Server is running or not ?" Watch "How to check whether the RMI Server is running or not ?" New topic
Author

How to check whether the RMI Server is running or not ?

saravanan palanivel
Greenhorn

Joined: Sep 05, 2012
Posts: 9
Hi,
I am developing a application using RMI service to download files from file server.
How to check whether the RMI Server is running or not before I initiate downloading.
please help me...
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4658
    
    5

Even if you can answer this is general, I don't think it will do you any good. Suppose you have a scenerio such as:

1) call routine to check that remote RMI server is up.
2) if not up, print error message and take a nap for a while, go to 1)
3) prepare to download, make sure there is enough disk space locally to store, etc.
4) start the download
5) save the results
6) quit

What happens if the remote RMI server goes away, crashes, network failure, etc. between 1) and 4)?


More importantly, why are you thinking of using RMI for this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check whether the RMI Server is running or not ?