Bookmark Topic Watch Topic
  • New Topic

RMI ShutDown  RSS feed

 
Devu Shah
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am surprised that no book, no forum, no body discuss very serios matter "how to shut down RMI gracefully ?" Because if we are using Conttrol+c then what about database if some transaction might going on(written to database ).
I thaught one way might be in right direction. if we use key lisner which takes control+c and pass it to method which can handle shut down process. BUT without gui i dont know how to add key listener to application.? I think makeing do while loop and waiting for userinput is not good design. we should have somthing like key listener.
can any body guide how to add keylistener (Or hotkey) to application without having gui ?
thanks
devu
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Devu - I've closed this thread since it already appears in Developer Certification.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!