You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Per Hammer (JIRA)" <ji...@apache.org> on 2007/08/21 12:43:22 UTC
[jira] Commented: (AMQ-1152) ActiveMQ connectionFactory ignores
redeliveryPolicy
[ https://issues.apache.org/activemq/browse/AMQ-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39990 ]
Per Hammer commented on AMQ-1152:
---------------------------------
I had a similar problem (Spring+ActiveMQ, redelivery kept going if an exception was thrown in my listener). Setting <property name="cacheLevelName" value="CACHE_CONSUMER" /> on my DefaultMessageListenerContainer fixed the problem, and my consumer now only receives the message once - with no redelivery if the consumer throws an exception.
This is a workable solution for my circumstance, but I won't pretend to know enough about the JMS spec to say if it's the Correct Behaviour or not.
> ActiveMQ connectionFactory ignores redeliveryPolicy
> ---------------------------------------------------
>
> Key: AMQ-1152
> URL: https://issues.apache.org/activemq/browse/AMQ-1152
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.1.0
> Reporter: Tim Chen
> Fix For: 5.2.0
>
> Attachments: jms.tar.bz2
>
>
> Run mvn -Dtest=JmsTest test in the attached sample application.
> Redelivery is ignored and failed messages will not stop redelivering.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.