• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About unexportObject

 
Victor Pan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think this is the lease timer of the DGC but why do you want to stop the server?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic