activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdifrango <rdifra...@captechconsulting.com>
Subject Broker Configuration - Redlivery Policy
Date Thu, 20 Feb 2014 18:08:53 GMT
I'm trying to set a global redilvery policy that anytime there is a failure
on my Message Listeners [via Spring] that all errors land in a single error
queue.  I trying to do so, I'm getting a failure upon reading my XML file
that I'm using to configure my broker.

My environment is:

Active MQ 5.9
Spring 3.2.4

Here is the config file [please note it works fine without the
<plugins><redeliveryPlugin> block:

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">

	
	<bean
	
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<value>file:${activemq.conf}/credentials.properties</value>
		</property>
	</bean>

	
	<broker xmlns="http://activemq.apache.org/schema/core" useJmx="false"
		brokerName="localhost" persistent="true" dataDirectory="${activemq.data}">

		<destinationPolicy>
			<policyMap>
				<policyEntries>
					<policyEntry topic=">">
						
						<pendingMessageLimitStrategy>
							<constantPendingMessageLimitStrategy
								limit="1000" />
						</pendingMessageLimitStrategy>
					</policyEntry>
				</policyEntries>
			</policyMap>
		</destinationPolicy>

		
		<managementContext>
			<managementContext createConnector="false" />
		</managementContext>

		
		<persistenceAdapter>
			<kahaDB directory="${activemq.data}/kahadb" />
		</persistenceAdapter>

		<plugins>
			<redeliveryPlugin sendToDlqIfMaxRetriesExceeded="true">
				<redeliveryPolicyMap>
					<redeliveryPolicyMap>
						<defaultEntry>
							<redeliveryPolicy initialRedeliveryDelay="5000"
maximumRedeliveries="1" queue="error.epf.audit.queue"/>
						</defaultEntry>
					</redeliveryPolicyMap>
				</redeliveryPolicyMap>
			</redeliveryPlugin>
		</plugins>

		
		<systemUsage>
			<systemUsage>
				<memoryUsage>
					<memoryUsage percentOfJvmHeap="70" />
				</memoryUsage>
				<storeUsage>
					<storeUsage limit="100 gb" />
				</storeUsage>
				<tempUsage>
					<tempUsage limit="50 gb" />
				</tempUsage>
			</systemUsage>
		</systemUsage>

		
		<transportConnectors>
			
			<transportConnector name="openwire"
			
uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"
/>
		</transportConnectors>

		
		<shutdownHooks>
			<bean xmlns="http://www.springframework.org/schema/beans"
class="org.apache.activemq.hooks.SpringContextHook" />
		</shutdownHooks>

	</broker>

</beans>



--
View this message in context: http://activemq.2283324.n4.nabble.com/Broker-Configuration-Redlivery-Policy-tp4678217.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message