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_r185704698
########## File path: omega/omega-transport/omega-transport-dubbo/src/main/java/org/apache/servicecomb/saga/omega/transport/dubbo/SagaDubboProviderFilter.java ########## @@ -0,0 +1,43 @@ +package org.apache.servicecomb.saga.omega.transport.dubbo; + +import com.alibaba.dubbo.common.Constants; +import com.alibaba.dubbo.common.extension.Activate; +import com.alibaba.dubbo.config.spring.extension.SpringExtensionFactory; +import com.alibaba.dubbo.rpc.*; +import org.apache.servicecomb.saga.omega.context.OmegaContext; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.lang.invoke.MethodHandles; + +import static org.apache.servicecomb.saga.omega.context.OmegaContext.GLOBAL_TX_ID_KEY; +import static org.apache.servicecomb.saga.omega.context.OmegaContext.LOCAL_TX_ID_KEY; + +/** + * get saga transaction id from dubbo invocation and set into omega context +* @author wuzq Review comment: We normally don't put the author and email into our code, as we can trace the code from git. ---------------------------------------------------------------- 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