WillemJiang commented on a change in pull request #180: [SCB-245] add dubbo support for omega, pass omega context from consumer… URL: https://github.com/apache/incubator-servicecomb-saga/pull/180#discussion_r185704773
########## File path: omega/omega-transport/omega-transport-dubbo/src/main/java/org/apache/servicecomb/saga/omega/transport/dubbo/SagaDubboConsumerFilter.java ########## @@ -0,0 +1,47 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + +package org.apache.servicecomb.saga.omega.transport.dubbo; + +import com.alibaba.dubbo.common.extension.Activate; +import com.alibaba.dubbo.config.spring.extension.SpringExtensionFactory; +import com.alibaba.dubbo.rpc.Filter; +import com.alibaba.dubbo.rpc.Invocation; +import com.alibaba.dubbo.rpc.Invoker; +import com.alibaba.dubbo.rpc.Result; +import com.alibaba.dubbo.rpc.RpcException; + +import java.lang.invoke.MethodHandles; + +import org.apache.servicecomb.saga.omega.context.OmegaContext; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * add saga transaction id to dubbo invocation +* @author wuzq +* @email wuzunq...@msn.com +* @date 03/05/2018 10:44 AM +*/ +@Activate( + group = {"consumer"} Review comment: You may use the constant here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services