tx-lcn
tx-lcn copied to clipboard
Leave your company's name and website please if you use LCN framework. Thanks.
凯京集团(预研) http://www.keking.cn/
深圳掌中彩乐游 http://www.lotplay.cn/
诸葛天下 www.zgxcw.com
浙江鑫全万投资管理有限公司 https://www.zjxqwjt.com/
成都·天呈食材 http://www.tincerefood.com/
中科软http://www.sinosoft.com.cn/
猪八戒 zbj.com
在springcloud2.0.1上,通过openfeign调用其他服务,但是事务一直得不到回滚
用5.0.2.RELEASE的版本,返回成功了,但是数据库没有任何变化,都已经返回插入成功的id了,控制台输出init tracingContext fail. null init fields.而且是偶现的
用官方mybatis的在erueka注册,是成功的,但是用非springcloud集成的持久层框架,用的自己加入的原生hibernate(spring mvc转过来的),一直不成功
你好,请教springcloud下使用LCN 在做熔断fallback时,发现事务无法回滚,请问解决方案
txlcn框架,只支持springboot项目么?支持springmvc项目么?
我的问题都解决了,包括自定义持久层,好像不支持mvc,再说用mvc来做什么分布式,
用熔断真是个糟糕的选择,我一直觉得没有什么太需要的场景要用熔断
因为业务上可能对接的也有mvc项目,看看能不能支持,还是感谢能回复我的问题,谢谢!!!
| | 王建坤 邮箱:[email protected] |
签名由 网易邮箱大师 定制
On 04/04/2019 23:35, 1121076248 wrote:
我的问题都解决了,包括自定义持久层,好像不支持mvc,再说用mvc来做什么分布式,
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
因为业务上可能对接的也有mvc项目,看看能不能支持,还是感谢能回复我的问题,谢谢!!! | | 王建坤 邮箱:[email protected] | 签名由 网易邮箱大师 定制 On 04/04/2019 23:35, 1121076248 wrote: 我的问题都解决了,包括自定义持久层,好像不支持mvc,再说用mvc来做什么分布式, — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
自定义开发应该可以解决你的问题,就是手动实现与tm的交互,手动实现事务提交和回滚的
非常感谢你的回复,但我还是不知道如何下手,能提供一个可行的思路建议吗?
| | 王建坤 | | [email protected] | 签名由网易邮箱大师定制
On 04/8/2019 09:19,1121076248[email protected] wrote:
因为业务上可能对接的也有mvc项目,看看能不能支持,还是感谢能回复我的问题,谢谢!!! | | 王建坤 邮箱:[email protected] | 签名由 网易邮箱大师 定制 On 04/04/2019 23:35, 1121076248 wrote: 我的问题都解决了,包括自定义持久层,好像不支持mvc,再说用mvc来做什么分布式, — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
自定义开发应该可以解决你的问题,就是手动实现与tm的交互,手动实现事务提交和回滚的
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
源码编译不通过啊 大神
天正软件 http://www.topcheer.com 徐忱 QQ: 12526456 邮箱: [email protected]
我也是事务不能一起回滚(三方参与事务A调用完B和C抛异常回滚了,但B和C没有回滚),不知如何设置;还有TxManage系统后台的日志一直都没有,表也是空的,不知原因!
在做tx的时候,可以用自定义实现,在lcn的注入哪里加上你的事务层,官方的扩展里面有说明,可以实现多服务、多库的同时写入和同时回滚
我是zhey这样实现的,是可以实现的
请问网上说txlcn-tc和txlcn-txmsg-netty两个包不能从maven仓库直接引用,而需要自己将源码直接打包再引用,是这样吗?
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: 1121076248 [email protected] Sent: Thursday, July 25, 2019 11:23:25 AM To: codingapi/tx-lcn [email protected] Cc: mozvil [email protected]; Comment [email protected] Subject: Re: [codingapi/tx-lcn] Leave your company's name and website please if you use LCN framework. Thanks. (#7)
在做tx的时候,可以用自定义实现,在lcn的注入哪里加上你的事务层,官方的扩展里面有说明,可以实现多服务、多库的同时写入和同时回滚 [image]https://user-images.githubusercontent.com/19721126/61843506-863ab080-aece-11e9-8707-e3dd257722c7.png我是zhey这样实现的,是可以实现的
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/codingapi/tx-lcn/issues/7?email_source=notifications&email_token=ALE3BWQVSGH2GIR2LANAGU3QBEMC3A5CNFSM4EFMNPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2YHDIY#issuecomment-514879907, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALE3BWSWRY3XDHQU62TZFLTQBEMC3ANCNFSM4EFMNPVQ.
可以啊,我是跟着官网走的,其他博客就参照一下就行了
你好, 还有个问题请教,你有过用kubernetes部署tx-lcn服务的经验吗?我现在部署完成了,但是服务的8070端口一直不能访问,而server.port里的端口却可以访问,我在k8s的dashboard里面看到两个端口其实都映射成功的,这是为什么呢? 上传的docker image 里面的application.yml配置文件写: tx-lcn.manager.host=127.0.0.1 tx-lcn.manager.port=8070
下面是我的k8s service yaml: apiVersion: v1 kind: ReplicationController metadata: name: demo-tx-manager spec: replicas: 1 selector: app: demo-tx-manager template: metadata: labels: app: demo-tx-manager spec: containers: - name: demo-tx-manager image: 192.169.2.106:1180/201907demo/demo-tx-manager:1.0.1 ports: - containerPort: 8006 name: txmanager - containerPort: 8070 name: txport
apiVersion: v1 kind: Service metadata: name: demo-tx-manager spec: type: NodePort ports:
- name: txmanage port: 8006 protocol: TCP targetPort: 8006 nodePort: 30106
- name: txport port: 8070 protocol: TCP targetPort: 8070 nodePort: 31070 selector: app: demo-tx-manager
谢谢!
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: 1121076248 [email protected] Sent: Thursday, July 25, 2019 2:21:09 PM To: codingapi/tx-lcn [email protected] Cc: mozvil [email protected]; Comment [email protected] Subject: Re: [codingapi/tx-lcn] Leave your company's name and website please if you use LCN framework. Thanks. (#7)
[image]https://user-images.githubusercontent.com/19721126/61850611-55b34080-aee7-11e9-9af4-aa9fee6b0281.png 可以啊,我是跟着官网走的,其他博客就参照一下就行了
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/codingapi/tx-lcn/issues/7?email_source=notifications&email_token=ALE3BWSEQOX4RLYJ7FEXHJDQBFA5LA5CNFSM4EFMNPV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2YPIZQ#issuecomment-514913382, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALE3BWVROUHXYQGZVYJUG33QBFA5LANCNFSM4EFMNPVQ.
没有
在springcloud2.0.1上,通过openfeign调用其他服务,但是事务一直得不到回滚
解决了吗?我看你说都解决了,这个问题解决了吗?
在springcloud2.0.1上,通过openfeign调用其他服务,但是事务一直得不到回滚
解决了吗?我看你说都解决了,这个问题解决了吗?
检查LCN是否在事务层起了作用,和是否成功的介入了事务的切面操作
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error getting generated key or setting result to parameter object. Cause: java.sql.SQLException: 未执行语句句柄 ; uncategorized SQLException; SQL state [99999]; error code [17144]; 未执行语句句柄; nested exception is java.sql.SQLException: 未执行语句句柄] with root cause
java.sql.SQLException: 未执行语句句柄
是不是不支持oracle的呀,有人可以能帮解答下吗?
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error getting generated key or setting result to parameter object. Cause: java.sql.SQLException: 未执行语句句柄 ; uncategorized SQLException; SQL state [99999]; error code [17144]; 未执行语句句柄; nested exception is java.sql.SQLException: 未执行语句句柄] with root cause
java.sql.SQLException: 未执行语句句柄
是不是不支持oracle的呀,有人可以能帮解答下吗?
从这个技术原理来说,不会限制数据库,他只提供了多事务间的原子性操作,连什么库是你决定的,非关系型数据库都可以
上海新华控制技术
电话:13872680696
qq: 337461354
源码下载后都编译成功,TM启动正常,TC注册成功。
问题:
1,TC端配置后,通过feign客户端无法调用其他服务,也没有异常信息。屏蔽所有tx注解后,就可以掉其他服务。
2, 事务结束后,一直有这个警告。
WARN 18460 --- [trix-xmes-log-3] c.c.txlcn.tracing.TracingContext : init tracingContext fail. null init fields.
现在搞不定问题,项目又紧,麻烦官方帮忙处理回复一下,谢谢!