[
https://issues.apache.org/jira/browse/CAMEL-7665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129271#comment-14129271
]
ASF GitHub Bot commented on CAMEL-7665:
---------------------------------------
GitHub user neoramon opened a pull request:
https://github.com/apache/camel/pull/264
CAMEL-7665
RabbitMq don't reject messages when consumer or endpoint fail.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/neoramon/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/264.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #264
----
commit 668316f0a06da0664765e64b12cf45e3dc451fab
Author: neoramon <[email protected]>
Date: 2014-09-10T22:32:31Z
CAMEL-7665
RabbitMq don't reject messages when consumer or endpoint fail.
----
> RabbitMq don't reject messages when consumer or endpoint fail.
> --------------------------------------------------------------
>
> Key: CAMEL-7665
> URL: https://issues.apache.org/jira/browse/CAMEL-7665
> Project: Camel
> Issue Type: Bug
> Components: camel-rabbitmq
> Affects Versions: 2.13.2
> Reporter: Ramon Rosa da Silva
> Assignee: Willem Jiang
> Fix For: 2.14.0
>
>
> RabbitMQ does not execute command to reject a message when consumers or end
> point throws an exception or shutdown is executed by karaf.
> We need execute channel.basicReject(deliveryTag, false) to send message to
> Dead Letter Exchange.
> In current implementation the message is always acknowledged.
> Scenario:
> {code}
> from("rabbitmq://localhost:5672/myFailTest?"
> +"routingKey=myFailTest&queue=myFailTest&exchangeType=direct"
> + "&vhost=test&durable=true&autoDelete=false"
> + "&autoAck=false&username=guest&password=guest")
> .to("ftp://localhost/notExists?connectTimeout=100&timeout=100");
> {code}
> Using errorHandler(deadLetterChannel("..another queue") the message is
> Redelivered in same queue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)