You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/09/02 01:50:36 UTC

[GitHub] [servicecomb-pack] Fxdemon commented on issue #547: PackDubboConsumerFilter get null omegaContext

Fxdemon commented on issue #547: PackDubboConsumerFilter get null omegaContext
URL: https://github.com/apache/servicecomb-pack/issues/547#issuecomment-526975170
 
 
    public static void main(String[] args) {
           dubbo();
           SpringApplication.run(TestControllerApplication.class, args);
       }
   
   
       private static void dubbo() {
           ApplicationConfig application = new ApplicationConfig();
           application.setName("pack_dubbo_test");
   
           RegistryConfig registry = new RegistryConfig();
           registry.setAddress("zookeeper://127.0.0.1:2181");
   //        registry.setGroup("1.0"); //这里加会注册不上
   //        application.setRegistry(registry);
   
           ProviderConfig providerConfig = new ProviderConfig();
           providerConfig.setPort(20892);
   
           IGreetingService testService = new GreetingService();
   
           ServiceConfig<IGreetingService> service = new ServiceConfig<IGreetingService>();
           service.setApplication(application);
           service.setInterface("com.pactera.idbc.finance.service.IGreetingService");
           service.setRef(testService);
           service.setProvider(providerConfig);
   //        service.setGroup("demo.samples");
           service.setRegistry(registry);
           service.export();
   
       }
   
   
   这有发布的dubbo服务 在消费的时候  OmegaContext 为空 配置为xml 方式可以获取到 OmegaContext ?

----------------------------------------------------------------
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


With regards,
Apache Git Services