You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Jost (JIRA)" <ji...@apache.org> on 2019/05/09 13:52:00 UTC
[jira] [Created] (AMQ-7198) Client doesn´t recognize redeliveryPolicy set in ActiveMQConnectionFactory
Michael Jost created AMQ-7198:
---------------------------------
Summary: Client doesn´t recognize redeliveryPolicy set in ActiveMQConnectionFactory
Key: AMQ-7198
URL: https://issues.apache.org/jira/browse/AMQ-7198
Project: ActiveMQ
Issue Type: Bug
Components: JMS client
Affects Versions: 5.15.9
Reporter: Michael Jost
When configuring the ActiveMQConnectionFactoty as follows:
{code:java}
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url); connectionFactory.setUserName(username); connectionFactory.setPassword(password); RedeliveryPolicy policy = new RedeliveryPolicy(); policy.setMaximumRedeliveries(3); policy.setMaximumRedeliveryDelay(10000); RedeliveryPolicyMap map = new RedeliveryPolicyMap(); map.setDefaultEntry(policy); connectionFactory.setRedeliveryPolicyMap(map);
{code}
The ActiveMQClient won´t use the configured Redeliverypolicy, but instead uses the default for that. It seems that it is not possible to overwrite the default Policy without configuring the redeliverypolicy in the url configuration. Url configuration via
{code:java}
failover:(tcp://localhost:61616)?jms.redeliveryPolicy.maximumRedeliveries=0
{code}
is working correct.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)