Hi All:
   In order to let Java Chassis support Gracefully Shutdown, I think need to do 
these works :
   1.Unregister microservice instance from Service Center(clean service 
registry).
   2.Stop all network transport threads (vertx eventloop-threads)(to prevent 
blocking exit).
   3.Close ClassPathXmlApplicationContext created in BeanUtils.init() and 
release all resources and locks.
   4.Raise an ShutdownEvent in EventBus.
  
   Also if user directly call `System.exit(0)` , all these works will done and 
jvm can terminate with `Process finished with exit code 0`.
  
   What's missing or any suggestions are welcome !
  
 Best Regards!
 YangYongZheng

Reply via email to