activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: How do I configure a automatic expiration for DLQ
Date Fri, 17 Oct 2014 19:10:03 GMT
2.  That plugin will cause messages to be discarded immediately instead of
going to the DLQ.  There's 5-day timeout like you're looking for, they just
go straight into the bit bucket.

On Fri, Oct 17, 2014 at 11:17 AM, gchakra <gopal.chakravarthy@fox.com>
wrote:

> 1.For the dead letter queue ActiveMQ.DLQ, I would like to configure a
> policy
> whereby messages in DLQ get deleted after they have resided in DLQ for 5
> days.
> I couldnt see how to do it in the documentation.
> My current activemq.xml configuration file is below...how do I modify it
> for
> autoexpiring my DLQ messages after 5 days...
>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:amq="http://activemq.apache.org/schema/core"
> 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-2.0.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.base}/conf/credentials.properties</value>
>                 </property>
>         </bean>
>         <broker xmlns="http://activemq.apache.org/schema/core"
> brokerName="localhost" dataDirectory="${activemq.base}/data"
> destroyApplicationContextOnStop="true">
>                 <destinationPolicy>
>                         <policyMap>
>                                 <policyEntries>
>                                         <policyEntry topic=">"
> producerFlowControl="false" memoryLimit="1mb"
> useCache="false">
>                                                 <pendingSubscriberPolicy>
>                                                         <vmCursor />
>                                                 </pendingSubscriberPolicy>
>                                         </policyEntry>
>                                         <policyEntry queue=">"
> producerFlowControl="false" memoryLimit="1mb"
> useCache="false">
>                                                 <dispatchPolicy>
>
> <roundRobinDispatchPolicy />
>                                                 </dispatchPolicy>
>                                         </policyEntry>
>                                 </policyEntries>
>                         </policyMap>
>                 </destinationPolicy>
>                 <managementContext>
>                         <managementContext createConnector="false"/>
>                 </managementContext>
>                 <persistenceAdapter>
>                         <kahaDB directory="${activemq.base}/data/kahadb"
> ignoreMissingJournalfiles="true" checkForCorruptJournalFiles="true"
> checksumJournalFiles="true" journalMaxFileLength="64mb" />
>                 </persistenceAdapter>
>                 <transportConnectors>
>                         <transportConnector name="openwire" uri="tcp://
> 0.0.0.0:61616"/>
>                 </transportConnectors>
>         </broker>
>         <import resource="jetty.xml"/>
> </beans>
>
>
> 2. What is the impact of adding the following plugin to the broker in
> activemq.xml configuration XML
> <broker xmlns="http://activemq.apache.org/schema/core"
> brokerName="localhost" dataDirectory="$
> {activemq.base}/data" destroyApplicationContextOnStop="true">
> <plugins>
> <discardingDLQBrokerPlugin dropAll="true" dropTemporaryTopics="true"
> dropTemporaryQueues="true" />
> </plugins>
> </broker>
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-do-I-configure-a-automatic-expiration-for-DLQ-tp4686510.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message