Mule Quartz端点不提交事务

时间:2013-09-03 16:25:53

标签: exception mule quartz-scheduler

我的石英调度程序配置如下所示。

<quartz:inbound-endpoint jobName="retryJob" repeatInterval="5000" cronExpression="0 0/1 * * * ?">
    <quartz:endpoint-polling-job>
        <quartz:job-endpoint ref="retryQueue"/>
    </quartz:endpoint-polling-job>
</quartz:inbound-endpoint>
<flow-ref name="callMySubFlow" />
<choice-exception-strategy>
  <catch-exception-strategy when="groovy:message.getInvocationProperty('next') == 'DONE'">
      <logger level="INFO" message="DONE"/>
  </catch-exception-strategy>
  <rollback-exception-strategy>
<on-redelivery-attempts-exceeded>
        <logger level="INFO" message="Redelivery Exceeded. Done with retries."/>
</on-redelivery-attempts-exceeded>
  </rollback-exception-strategy>
</choice-exception-strategy>

<jms:connector name="queueConnectorU" connectionFactory-ref="MQConnectionFactoryU" specification="1.1" username="me" password="p" numberOfConsumers="5" maxRedelivery="3"/>

<jms:endpoint name="retryQueue" queue="retryQ" connector-ref="queueConnectorU">
    <ee:multi-transaction action="ALWAYS_BEGIN" />
</jms:endpoint>

我在子流中有一个故意服务未找到异常,并期望消息重试3次并提交,但消息永远不会从队列中删除......无限循环。

配置有什么问题吗?

0 个答案:

没有答案