vio-lin opened a new issue #9781:
URL: https://github.com/apache/dubbo/issues/9781


   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.7
   * Operating System version: windows
   * Java version: jdk8
   
   ### Steps to reproduce this issue
   
   1. find  10 server
   2.  create 10 client in XML:DubboReference 
   3. start client Applicaion
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behaviort
   The Client will be started and run will.
   
   ### Actual Behavior
   It take too much time to start application.
   
   ```java
   private void prepareDubboConfigBeans() {
           beansOfTypeIncludingAncestors(applicationContext, 
ApplicationConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
ModuleConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
RegistryConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
ProtocolConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
MonitorConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
ProviderConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
ConsumerConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
ConfigCenterBean.class);
           beansOfTypeIncludingAncestors(applicationContext, 
MetadataReportConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, 
MetricsConfig.class);
           beansOfTypeIncludingAncestors(applicationContext, SslConfig.class);
       }
   ```
   `org.apache.dubbo.config.spring.ReferenceBean#prepareDubboConfigBeans`
   
   every ReferenceBean is a factoryBean,before It start it will  
   find all ApplicationConfig in SpringContext ,wich will init all factoryBean  
   then other ReferenceBean will be init and try to get applicationConfig again.
   the application just stop


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to