Can you forward the message to a "rejected message" topic, so consumers
could subscribe and get messages that are rejected?  If you don't want to
send the original message, you should be able to use a custom transformer
to create a different message of your choosing.

Tim
On Jan 19, 2016 10:36 AM, "slew77" <stephen.lewi...@yahoo.co.uk> wrote:

> Hi,
>
> I've configured a camel route intercepting an inbound message.
>
> If something goes wrong when processing the camel route, I'd like to be
> able
> to reject the incoming message in a way that the client knows that the
> message hasn't been accepted.
>
> If my route doesn't forward the message back to the broker, the message is
> dropped, but this is silent - the client thinks the message was accepted.
>
> If I raise an exception from the route, I see this in the log, but with the
> same outcome, the client still thinks the message has been accepted.
>
> Is there a way to reject an inbound message?
>
> Thanks,
> Steve.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Reject-an-incoming-message-from-Camel-tp4706168.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to