activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Pal <>
Subject redelivery from a queue
Date Fri, 14 Oct 2011 09:12:07 GMT

I'm having a problem with message redelivery (ActiveMQ version is 5.5). It
seems messages are redelivered from the broker to the consumer several
times. The session is not transacted and the acknowledgement mode is auto.
Besides I cannot see any exception thrown by the application.
Our consumer is a a simple MessageListener wrapped in Spring's
DefaultMessageListenerContainer with the following configuration:

	<bean id="listenerContainer"
		<property name="messageListener" ref="listener" />
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="destination" ref="userNotificationMq" />

	<bean id="userNotificationMq"
		<property name="physicalName" value="usernotification" />

Our jmsConnectionFactory looks like this:

	<bean id="jmsConnectionFactory"
		<property name="brokerURL" value="vm://localhost?broker.persistent=true"
		<property name="redeliveryPolicy">
			<bean class="org.apache.activemq.RedeliveryPolicy">
				<property name="maximumRedeliveries" value="144" />
				<property name="redeliveryDelay" value="1800000" />

The redeliverypolicy defined is for a different MessageListener which
listens to a different destination.

The brokerURL is the following:

We are using network of brokers with the following configuration:

Broker A


Broker B


Any help would be appreciated

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message