Quantcast
Channel: Spring Community Forums - JMS
Viewing all articles
Browse latest Browse all 51

Customer error channel for JMS outbound channel adapter

$
0
0
Hi,

Is there a way to configure a customer error channel for a JMS outbound channel adapter?

If for whatever reason the connection to the messaging broker (in this case Hornet Q) goes down I want to be able to log the message payload so it is not lost.

I have a service activator configured for the default 'errorChannel' & can see how to extract the failed message from the MessageHandlingException but I only want to log this in the event of a JmsException. Instead of doing a check on the actual exception type I wondered if I could just setup a new custom error channel.

Many Thanks.

Viewing all articles
Browse latest Browse all 51

Trending Articles