These are chat archives for alibaba/dubbo

8th
Jan 2018
ken.lj
@chickenlj
Jan 08 2018 03:52
@wfd0807 We have released a new version: 2.6.0, mainly merged dubbox from dangdang.
ken.lj
@chickenlj
Jan 08 2018 05:43
@jfxl You can specify a Registry as default:
<dubbo:registry default="true" />
ken.lj
@chickenlj
Jan 08 2018 06:09

@marksnoopy To be honest, that may take quite a while to support, currently, we've got some requirements with higher priority.

Welcome to contribute or join our team in alibaba.

@ezrealliu You can refer to the implementation of RegistryServerSync in dubbo-admin.
zhangcong
@zhangcong001
Jan 08 2018 06:23
@chickenlj 再请教下 如果我在配置文件中已经配置了一个注册中心 ,然后import了一个配置文件 里面又有一个注册中心 那么这两个注册中心的作用范围各是什么啊 ;或者在dubbo文档的哪一部分可以查询这个问题啊
luoqi77
@luoqi77
Jan 08 2018 06:25
@chickenlj Hi,I have a question, how to remove the invoke command from the Dubbo's telnet? I tried to add token parameters to <dubbo:service>. Is there any other way to do it ?
ken.lj
@chickenlj
Jan 08 2018 06:30
@jfxl You can put multiple RegistryConfigs in different configuration files or just in one files, that makes no difference, just like you can put two standard spring <bean /> in any file.
zhangcong
@zhangcong001
Jan 08 2018 06:34
@chickenlj thankyou the same
ken.lj
@chickenlj
Jan 08 2018 06:41
@luoqi77 There's no other ways to reject telnet commands except for token at present.
Actually, we have refactored the telnet part, but it's still in progressing, only support online/offline, ls currently.
luoqi77
@luoqi77
Jan 08 2018 06:43
@chickenlj I see. Thank you very much.
ken.lj
@chickenlj
Jan 08 2018 06:50
By the way, online/offline may help u with sth. useful, for example: graceful shutdown, delay register, publish/unpublish at runtime or publish in batches.
luoqi77
@luoqi77
Jan 08 2018 06:56
@chickenlj I've been studying on http://dubbo.io/books/dubbo-user-book/ recently, and it feels very helpful to me.
githubxingyuntian
@githubxingyuntian
Jan 08 2018 07:11
2.6.0合并dubbox的时候,有做兼容吗?因为dubbox为了加入序列化缓存的功能,更改了Dubbo原生的协议(改变了序列化参数的顺序),导致dubbox与dubbo互调是有问题的。
ken.lj
@chickenlj
Jan 08 2018 07:14
@githubxingyuntian We have removed the changes to RPC protocol in 2.6.0.
Please refer to the Release Notes
githubxingyuntian
@githubxingyuntian
Jan 08 2018 07:15
good
ken.lj
@chickenlj
Jan 08 2018 07:15
Please let me know if you have any other question
konglz
@konglz
Jan 08 2018 11:01
近期有支持文档系统的计划吗,比如说集成swagger
在spring boot项目里用dubbo(2.6版),走alibaba的spring-boot-starter-dubbo有坑吗;是推荐用starter,还是推荐xml呢?
konglz
@konglz
Jan 08 2018 11:14
dubbo-monitor-simple原网站关闭了,这个项目现在还开源吗,有没有替代产品呀?
linziguan
@linziguan
Jan 08 2018 12:00
dubbo2.6 依赖了spring mvc,是否需要手动去掉
provider只想做成jar包
konglz
@konglz
Jan 08 2018 12:01
可以把dubbo当成一个容器,这个容器裁剪掉一切web相关内容,只暴露dubbo服务
我上家公司就是这么玩的
走dubbo的main方法启动项目
linziguan
@linziguan
Jan 08 2018 12:02
嗯,那就是说在maven里,要手工去掉这个依赖
konglz
@konglz
Jan 08 2018 12:02
感觉去掉比较好
如果你不需要的话
linziguan
@linziguan
Jan 08 2018 12:18
奇怪,不管是否排除spring-web,启动时都会去找web相关的类。
是否在什么地方可以去掉?我用的是spring boot
linziguan
@linziguan
Jan 08 2018 12:30
ApplicationContext ctx = new SpringApplicationBuilder()
.sources(Application.class)
.web(false)
.run(args);
已经设成web为false了
linziguan
@linziguan
Jan 08 2018 13:10
可以了,可能是其他包冲突了.
linziguan
@linziguan
Jan 08 2018 13:23
但另一个问题来了,刚启动spring boot ,dubbo就关闭了。DubboShutdownHook
aspiringwei
@aspiringwei
Jan 08 2018 13:33
想问下,2.6.0 需要引rs-api嘛
想起rest服务
linziguan
@linziguan
Jan 08 2018 13:37
图片.png
2.6跟 spring boot结合,不错。
aspiringwei
@aspiringwei
Jan 08 2018 13:40
@linziguan 你可以起rest 了?
这是我写的starter
这个starter的目的是希望异构语言也能通过restful来调dubbo服务
基于alibaba的starter,做了一点小修改
aspiringwei
@aspiringwei
Jan 08 2018 13:42
@konglz 我不想用starter
konglz
@konglz
Jan 08 2018 13:42
思路不差不多的
就是代码的组织形式不同
aspiringwei
@aspiringwei
Jan 08 2018 13:42
我想试下他的基于注解的形式,
    registryConfig.setProtocol("rest"); 貌似行不通
linziguan
@linziguan
Jan 08 2018 14:47
我还没整rest,只是走通了spring boot+dubbo。
不过个人觉得没太大必要做rest,这些可以交给spring mvc去完成。
aspiringwei
@aspiringwei
Jan 08 2018 14:49
那还需要封装转一层
aspiringwei
@aspiringwei
Jan 08 2018 15:34
可以 了
ε=(´ο`*)))唉
aspiringwei
@aspiringwei
Jan 08 2018 16:00
rest 支持的还是不好。2颗星