commit-transaction
태그의 exception-pattern
속성이 작동합니까?commit-transaction에서 예외 패턴이 작동합니까?
<mule ...>
<jms:activemq-connector name="JMSConnector" brokerURL="${messaging.brokerURL}" />
<flow name="aFlow">
<jms:inbound-endpoint name="endpoint.Name" queue="${queue}"
exchange-pattern="request-response"
connector-ref="JMSConnector" />
<component>
<spring-object bean="ThrowsBusinessException" />
</component>
<default-exception-strategy>
<commit-transaction exception-pattern="com.BusinessException" />
</default-exception-strategy>
</flow>
</mule>
경우 : 여기
<commit-transaction exception-pattern="some.specific.Exception"/>
구성의 관련 조각이다 : 즉, 나는이 작업을 얻을 수있는 기본 예외 전략,
<commit-transaction exception-pattern="*"/>
하지만 이것이다 exception-pattern="*"
을 사용하면 JMS 메시지가 다시 전달되지 않습니다. 그러나보다 구체적인 exception-pattern
을 사용하면 메시지가 다시 배달됩니다. throw 된 예외가 BusinessException
인 경우 메시지를 다시 전달하지 않습니다.
이 뮬 CE에서 3.2.1
감사합니다!
뮬 버전? 오류가 발생 했습니까? –
@David : 지금 메시지의 자세한 내용. – beluchin
사이드 노트 : ActiveMQ 커넥터에서'specification = "1.1"'을 원한다. –