This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About unexportObject Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About unexportObject" Watch "About unexportObject" New topic
Author

About unexportObject

Victor Pan
Ranch Hand

Joined: May 01, 2002
Posts: 36
Hi:
When I execute the statement.

The server didn't stop. There seem to be a thread running. But the return value of this statement is true. After about 15 minutes, the server stopped.
Could you tell me what's the matter?


Java makes world work!!!
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Not sure. It could be that RMI still had a lease timer running or something -- after all, this call doesn't say "stop the server", it says "stop accepting calls for this object". What's wrong with System.exit(0)?
- Peter
Victor Pan
Ranch Hand

Joined: May 01, 2002
Posts: 36
Hi Peter
If I code in this way.

The server will be stopped immediately. But I am wondering if it is legal.
Bernhard Woditschka
Ranch Hand

Joined: Sep 16, 2002
Posts: 89
I also think this is the lease timer of the DGC but why do you want to stop the server?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About unexportObject
 
Similar Threads
Assertion
Assert Doubt
Assertions Doubt
Coding Tricks
Doing a vlookup in java