We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package org.mengyun.tcctransaction.dubbo.proxy.jdk; public class TccInvokerInvocationHandler extends InvokerInvocationHandler { ......
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Compensable compensable = method.getAnnotation(Compensable.class); if (compensable != null) { // 设置 @Compensable 属性 if (StringUtils.isEmpty(compensable.confirmMethod())) { ReflectionUtils.changeAnnotationValue(compensable, "confirmMethod", method.getName()); ReflectionUtils.changeAnnotationValue(compensable, "cancelMethod", method.getName()); ReflectionUtils.changeAnnotationValue(compensable, "transactionContextEditor", DubboTransactionContextEditor.class); ReflectionUtils.changeAnnotationValue(compensable, "propagation", Propagation.SUPPORTS); } // 生成切面 ProceedingJoinPoint pjp = new MethodProceedingJoinPoint(proxy, target, method, args); return FactoryBuilder.factoryOf(ResourceCoordinatorAspect.class).getInstance().interceptTransactionContextMethod(pjp); } else { return super.invoke(target, method, args); } }
}
直接把 confirmMethod cancelMethod 名称赋值成方法名,导致事务恢复时 提交和回滚 出现错误
The text was updated successfully, but these errors were encountered:
try confirm cancel都是同一个接口,根据transactioncontext参数不同 在provider端掉用不同的方法,可参考1.6.x看看 是否有你说的问题。
Sorry, something went wrong.
No branches or pull requests
package org.mengyun.tcctransaction.dubbo.proxy.jdk;
public class TccInvokerInvocationHandler extends InvokerInvocationHandler {
......
}
直接把 confirmMethod cancelMethod 名称赋值成方法名,导致事务恢复时 提交和回滚 出现错误
The text was updated successfully, but these errors were encountered: