示例#1
0
 def restart_callback():
     global app_is_restarting
     app_is_restarting = True
     if not m2ee_client.stop():
         m2ee_client.terminate()
     runtime.complete_start_procedure_safe_to_use_for_restart(m2ee)
     app_is_restarting = False
示例#2
0
        def restart_callback():
            global app_is_restarting

            if not m2ee:
                logging.warning("M2EE client not set")
            app_is_restarting = True
            if not runtime.shutdown(m2ee, 10):
                logging.warning("Could not kill runtime with M2EE")
            runtime.complete_start_procedure_safe_to_use_for_restart(m2ee)
            app_is_restarting = False