[ https://issues.apache.org/jira/browse/SCB-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16520214#comment-16520214 ]
ASF GitHub Bot commented on SCB-244: ------------------------------------ WillemJiang commented on a change in pull request #210: [SCB-244] enable servicecomb and add demo URL: https://github.com/apache/incubator-servicecomb-saga/pull/210#discussion_r197404834 ########## File path: omega/omega-transport/omega-transport-servicecomb/src/main/java/org/apache/servicecomb/saga/omega/transport/servicecomb/SagaConsumerHandler.java ########## @@ -30,24 +30,23 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.google.common.annotations.VisibleForTesting; - public class SagaConsumerHandler implements Handler { private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); - private OmegaContext omegaContext; + private final OmegaContext omegaContext; public SagaConsumerHandler() { + OmegaContext context = null; try { - omegaContext = BeanUtils.getBean("omegaContext"); + context = BeanUtils.getBean("omegaContext"); } catch (NullPointerException npe) { - LOG.warn("The OmegaContext is not injected, The SagaConsumerHandler is disabled."); + LOG.warn("SagaConsumerHandler is not disabled, it's just cannot inject transaction ID."); Review comment: The waring message should be "The OmegaContext is null, SagaConsumer cannot inject transaction ID" ---------------------------------------------------------------- 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 > [pack] add demo to use pack with java chassis > --------------------------------------------- > > Key: SCB-244 > URL: https://issues.apache.org/jira/browse/SCB-244 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Saga > Affects Versions: saga-0.2.0 > Reporter: Eric Lee > Assignee: yangyongzheng > Priority: Minor > Fix For: saga-0.3.0 > > > as a dev, I want to know how I can use pack with Java Chassis. -- This message was sent by Atlassian JIRA (v7.6.3#76005)