转载:ActiveMQ.xml 配置详解

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations"> <value>file:${activemq.conf}/credentials.propertiesvalue> property> bean>  <bean id="logQuery" class="org.fusesource.insight.log.log4j.Log4jLogQuery" lazy-init="false" scope="singleton" init-method="start" destroy-method="stop"> bean>
<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="127.0.0.1" dataDirectory="${activemq.data}">
<destinationPolicy>
        <policyMap> <policyEntries>  <policyEntry topic=">" producerFlowControl="true" optimizedDispatch="true" memoryLimit="16mb">  <pendingMessageLimitStrategy>    <prefetchRatePendingMessageLimitStrategy multiplier="10"/> pendingMessageLimitStrategy>  <messageEvictionStrategy>  <OldestMessageWithLowestPriorityEvictionStrategy />  messageEvictionStrategy>   <slowConsumerStrategy>  <abortSlowConsumerStrategy abortConnection="false"/>  slowConsumerStrategy>  <dispatchPolicy>  <strictOrderDispatchPolicy/> dispatchPolicy>  <subscriptionRecoveryPolicy>   <timedSubscriptionRecoveryPolicy recoverDuration="1800000"/> subscriptionRecoveryPolicy>  <deadLetterStrategy>  <individualDeadLetterStrategy queuePrefix="DLQ.TOPIC." useQueueForQueueMessages="true"/> deadLetterStrategy>   <pendingSubscriberPolicy>  <fileCursor/> pendingSubscriberPolicy>  <pendingDurableSubscriberPolicy>  <storeDurableSubscriberCursor/> pendingDurableSubscriberPolicy> policyEntry>  <policyEntry queue=">" producerFlowControl="true" optimizedDispatch="true" memoryLimit="16mb"> <pendingMessageLimitStrategy> <prefetchRatePendingMessageLimitStrategy multiplier="10"/> pendingMessageLimitStrategy> <messageEvictionStrategy> <OldestMessageWithLowestPriorityEvictionStrategy /> messageEvictionStrategy> <slowConsumerStrategy> <abortSlowConsumerStrategy abortConnection="false"/> slowConsumerStrategy> <dispatchPolicy> <strictOrderDispatchPolicy/> dispatchPolicy> <subscriptionRecoveryPolicy> <timedSubscriptionRecoveryPolicy recoverDuration="1800000"/> subscriptionRecoveryPolicy> <deadLetterStrategy> <individualDeadLetterStrategy queuePrefix="DLQ.QUEUE." useQueueForQueueMessages="true"/> deadLetterStrategy>  <pendingQueuePolicy> <storeCursor> <nonPersistent> <fileQueueCursor/> nonPersistent> storeCursor> pendingQueuePolicy> policyEntry> policyEntries> policyMap> destinationPolicy> 
    <managementContext>
        <managementContext createConnector="false"/> managementContext>  <persistenceAdapter>  <amqPersistenceAdapter directory="${activemq.base}/data" maxFileLength="32mb"/>    
   

转载于:https://www.cnblogs.com/jbml-154312/p/7300104.html

你可能感兴趣的:(转载:ActiveMQ.xml 配置详解)