Skip to content

Springcloud 2.0.4#169

Merged
xlorne merged 89 commits intocodingapi:4.1.0-springboot2.0.xfrom
yizhishang:springcloud-2.0.4
Dec 31, 2018
Merged

Springcloud 2.0.4#169
xlorne merged 89 commits intocodingapi:4.1.0-springboot2.0.xfrom
yizhishang:springcloud-2.0.4

Conversation

@yizhishang
Copy link

兼容springcloud2.0.4版本,tx-manager集群

xlorne and others added 30 commits February 25, 2018 15:51
springcloud 打成war包执行的时候,并不走EmbeddedServletContainerInitializedEvent这个事件,所以可以监听ApplicationReadyEvent事件,将ServerListener,InitService注入新的监听器中启动客户端。springcloud的端口号一般都会配置,所以可以从配置文件中获取。
 应用初始化时若无法连接txmanager 将无法启动,但服务有可能已注册,有很大风险出现服务不可用-改为异步初始化
 当 txmanager 连接失败时,退化到无分布式事务,原来是会抛异常
     * 标示本服务是否是只读
     * 若为true : 不会加入事务组; Connection 不会被 Wrap
     * 在本服务无DB操作或仅有查询时请配置 true 将提高性能
     * 若应用都没有DB配置,此配置无意义不用设值
在 TxRunning中 point.proceed() 业务代码中 db事务正常提交,开始等待,后续处理发生异常。
由于没有加入事务组,不会收到通知,只能等到超时。
@xlorne xlorne changed the base branch from master to 4.1.0 December 31, 2018 13:19
@xlorne xlorne changed the base branch from 4.1.0 to 4.1.0-springboot2.0.x December 31, 2018 13:22
@xlorne xlorne merged commit 3759576 into codingapi:4.1.0-springboot2.0.x Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants