【发布时间】:2014-09-16 03:13:48
【问题描述】:
我有一个 JPA Outbound-channel-adapter 交易和请求处理程序建议链。在建议链中,我尝试在异常发生时记录它。 它没有记录,但我知道它实际上是在消息被发送到故障转移 clickDbFailoverChannel 后发生的。它可能有什么问题?这是 Spring Integration 中的错误吗?
<int:channel id="clickDbWithFailoverChannelSite-1">
<int:dispatcher load-balancer="none" task-executor="clickDbSiteRouterExecutor"/>
</int:channel>
<int:bridge input-channel="clickDbWithFailoverChannelSite-1"
output-channel="jpaOutboundChannelSite-1" order="1" send-timeout="100" />
<int:bridge input-channel="clickDbWithFailoverChannelSite-1"
output-channel="clickDbFailoverChannel" order="2" />
<int-jpa:outbound-channel-adapter id="jpaOutboundChannelSite-1"
persist-mode="PERSIST" flush-size="100" entity-manager-factory="emfSite-1">
<int-jpa:transactional transaction-manager="transactionManagerSite-1" />
<int-jpa:request-handler-advice-chain>
<bean class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
<property name="failureChannel" ref="clickDbFailureLogger"/>
<property name="onFailureExpression" value="#exception"/>
</bean>
</int-jpa:request-handler-advice-chain>
</int-jpa:outbound-channel-adapter>
【问题讨论】:
-
抱歉,信息不足。一些 StackTrace 以查看 SI 不正确的地方。一些无法正常工作的庞然大物。它应该如何工作等等......