
dubbo源码分析
gnocuohz
读万卷书行万里路
展开
-
dubbo+spring+maven+assembly+官方shell实现jar应用
项目地址 https://github.com/CongZhouArtist/dubbo-testdubbo版本2.6.4使用maven + assembly实现tar.gz打包使用官方start.sh实现脚本启动(其实使用com.alibaba.dubbo.container.Main运行spring环境)以dubbo-provider为例,目录树如下:assembly文件夹放了优...原创 2018-10-31 00:10:00 · 406 阅读 · 0 评论 -
dubbo的一次请求源码分析
调用某个服务首先会进入到动态代理。InvokerInvocationHandler#invoke(Object proxy, Method method, Object[] args)public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { String methodN...原创 2018-12-18 22:18:16 · 562 阅读 · 0 评论 -
dubbo服务暴露
ServiceBean#onApplicationEvent(ContextRefreshedEvent)ServiceBean#export()ServiceConfig#doExport()首先校验该service的配置是否为空,则加载dubbo:provider、dubbo:module、dubbo:application缺省配置,若还为空则加载dubbo.properties的配置。...原创 2019-01-20 20:35:42 · 1290 阅读 · 0 评论 -
dubbo服务引用
ReferenceBean实现了InitializingBean接口,Spring初始化时会调用afterPropertiesSet() public void afterPropertiesSet() throws Exception { if (getConsumer() == null) { /*省略代码,读取consumerConfig,然后...原创 2019-01-31 22:06:28 · 784 阅读 · 0 评论 -
从CompletableFuture学习Dubbo 2.7.x 全链路异步
CompletableFuture<String> objectCompletableFuture = CompletableFuture.supplyAsync(() -> { try { Thread.sleep(2000L); } catch (InterruptedException e)...原创 2019-04-25 21:25:03 · 1481 阅读 · 2 评论