aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI Server shutdown for URLyBird 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 "RMI Server shutdown for URLyBird" Watch "RMI Server shutdown for URLyBird" New topic
Author

RMI Server shutdown for URLyBird

Cathal Mullan
Ranch Hand

Joined: May 20, 2011
Posts: 118
Hey guys,

I'm wondering what happens if I shutdown my RMI server while there are threads waiting on my DB?

1. I have several requests on 1 record so there are threads waiting on this record
2. I shutdown the server from my GUI
3. Threads will still be waiting on the record but I have shutdown my server
4. RemoteException will occur to clients which were waiting on results
5. What happens the server threads which have not completed their DB requests?

cheers
Jonathan Elkharrat
Ranch Hand

Joined: Dec 31, 2008
Posts: 170

RemoteException, i think...


SCJP 5, SCWCD 5, SCBCD 5
Cathal Mullan
Ranch Hand

Joined: May 20, 2011
Posts: 118
Hey Jonathan,

RemoteException per thread?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4926
    
  10

Maybe you can run a few tests, see what happens and let us know


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Server shutdown for URLyBird
 
Similar Threads
Questions regarding Safe Server Shutdown
Database Lock
lock/unclock The correct question
locking and shutdown mechanism
[NX]STuPiD questions HELP !!!!