Forums Register Login

Server shutdown

+Pie Number of slices to send: Send
Hi Friends,
I have used RMI in my server side implimentation.And do not have and gui associated with the server,I am using ctrl C to shut down server through command prompt.
Is it ok to have sever shut down like this.
Kindly comment.
VikasSood
+Pie Number of slices to send: Send
Many have done it like that and there is probably nothing wrong with it. You may want to add a shutdown hook with Runtime.addShutdownHook() for any clean up. You can also read the standard input for a more elegant shutdown.
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 492 times.
Similar Threads
shuting down server
Server shutdown
Questions regarding Safe Server Shutdown
Where to put the business logic?
B&S: How do you handle the Exit in network mode?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:15:58.