dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zonghaishang (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] zonghaishang commented on issue #2865: Questions about shutdown graceful
Date Fri, 07 Dec 2018 04:56:51 GMT
``` java
    public static void addApplicationContext(ApplicationContext context) {
        contexts.add(context);
+        Runtime.getRuntime().removeShutdownHook(DubboShutdownHook.getDubboShutdownHook());
        BeanFactoryUtils.addApplicationListener(context, shutdownHookListener);
    }
```

It looks good, close it now.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2865 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


Mime
View raw message