You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/06/24 08:41:19 UTC

[GitHub] [dubbo] thedownup opened a new issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

thedownup opened a new issue #8133:
URL: https://github.com/apache/dubbo/issues/8133


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] candyaaa commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
candyaaa commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-945708792


   The problem has been solved.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #8133:
URL: https://github.com/apache/dubbo/issues/8133


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] candyaaa commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
candyaaa commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-930733397


   org.apache.dubbo.config.spring.context.DubboDeployApplicationListener
   ```java
   @Override
   public void onApplicationEvent(ApplicationContextEvent event) {
       if (event instanceof ContextRefreshedEvent) {
           onContextRefreshedEvent((ContextRefreshedEvent) event);
       } else if (event instanceof ContextClosedEvent) {
           onContextClosedEvent((ContextClosedEvent) event);
       }
   }
   ```
   调用了release()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] thedownup commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
thedownup commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-869413318


   > can you provider a demo to reproduce this problem ?
   > In my impression, ContextClosedEvent is used.
   
   AwaitingNonWebApplicationListener.java
    protected void onApplicationReadyEvent(ApplicationReadyEvent event) {
   
           final ConfigurableApplicationContext applicationContext = event.getApplicationContext();
   
           if (!isRootApplicationContext(applicationContext) || isWebApplication(applicationContext)) {
               return;
           }
   
           if (applicationContextId.compareAndSet(UNDEFINED_ID, applicationContext.hashCode())) {
               await();
               releaseOnExit();
           }
       }
   
     好像引入 devtools 时候 这个isWebApplication方法 会返回false 实际上是web环境 就导致执行了 await()  开启了线程 但是没有监听springboot的关闭事件 没关掉release()  项目报错后进程会一直在 2.7.8之前 这个类有onContextClosedEvent 没问题
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] thedownup commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
thedownup commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-867454670


   springboot 关闭后 dubbo的executorService 没有关闭


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] candyaaa removed a comment on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
candyaaa removed a comment on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-930344802


   @i will solve it@


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] candyaaa commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
candyaaa commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-930344802


   @i will solve it@


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] xiaoheng1 commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
xiaoheng1 commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-867549292


   can you provider a demo to reproduce this problem ? 
   In my impression, ContextClosedEvent is used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] candyaaa commented on issue #8133: dubbo2.7.8 之后没有监听spring的ContextClosedEvent 事件了?

Posted by GitBox <gi...@apache.org>.
candyaaa commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-930344802


   @i will solve it@


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org