Philippe Renon wrote:
>
> I found the issue: The EIP sitting in between the Jms consumer and mail
> producer was of type static-recipient-list and that type does not
> propagate back ERROR statues.
> Removing it and connecting the Jms consumer directly to the mail producer
> fixed my issue. Now ERROR at the mail producer level will rollback the Jms
> message.
>
Hi Phillipe,
The Static recipient list has a boolean property named reportErrors. If you
set it to true the error will propagate back to the consumer.
You could try:
<eip:static-recipient-list service="jms2mail:pipeline"
reportErrors="false" endpoint="endpoint">
<eip:recipients>
<eip:exchange-target service="jms2mail:mail"
endpoint="endpoint" />
</eip:recipients>
</eip:static-recipient-list>
-----
Ioannis Canellos
http://iocanel.blogspot.com/ http://iocanel.blogspot.com/
--
View this message in context:
http://old.nabble.com/How-to-create-a-robust-Jms-to-mail-bridge-tp28655521p28696279.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.