dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] 65725738 opened a new issue #258: spring-boot dubbo 如何打包provide服务?
Date Wed, 15 Aug 2018 07:42:12 GMT
65725738 opened a new issue #258: spring-boot dubbo 如何打包provide服务?
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/258
 
 
   
   这里有个问题。没时间去看源码,问一下。
   官方dubbo简单的例子,
    public static void main(String[] args) throws Exception {
           ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new
String[] {"http://10.20.160.198/wiki/display/dubbo/provider.xml"});
           context.start();
           System.in.read(); // 按任意键退出
       }
   这里面如果   System.in.read(); 不加的话,程序会退出来。这个是为什么呢?
   provide肯定会绑定端口提供服务的。为什么需要主线程hold住。难道刚开始的时候没初始化,初始化都是放在Daemon线程里面吗?netty
还是mina 应该都会绑定一个端口之后不会退出程序呀。
   
   com.alibaba.dubbo.container.Main这个类里面也需要hold主线程
        try {
               LOCK.lock();
               STOP.await();
           } catch (InterruptedException e) {
               logger.warn("Dubbo service server stopped, interrupted by other thread!", e);
           } finally {
               LOCK.unlock();
           }
   
   
   如果用springboot 加dubbo 。如何打包程序。
   
   直接用spring-boot-maven-plugin打包成jar 。可以吗?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

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


Mime
View raw message