• Post Reply Bookmark Topic Watch Topic
  • New Topic

Shutdown

 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know I was working the other night on the FBN system, and I am working on my last part, the actual booking test. When I tested the booking, and quit the client, the next time I started the client, it gave me an exception.
I saw previous posts regarding the RandomAccessFile class, and the same issues. So it seems to me that when I changed the file, I did not close the file when the client was done, and when I closed the server via CTRL-C.
So what are the possible solutions for shutdown?
I was thinking of making a simple screen pop up when you start the server, that displays the status of the server, and also a button for Shutdown.
Or is there a better solution?
Thanks
Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I made the JFrame, and it was quick and simple, and shut's the server down nicely.
Mark
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!