tomcat+activemq整合(4)

发布时间:2021-06-05

Tomcat与ActiveMQ的整合文档

<!-- Allows us to use system properties as variables in this configuration file -->

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

<broker xmlns="/schema/core" brokerName="localhost" persistent="true" useShutdownHook="false">

<!-- Destination specific policies using destination names or wildcards -->

<destinationPolicy>

<policyMap>

<policyEntries>

<policyEntry queue=">" memoryLimit="5mb"/>

<policyEntry topic=">" memoryLimit="5mb">

<dispatchPolicy>

<strictOrderDispatchPolicy/>

</dispatchPolicy>

<subscriptionRecoveryPolicy>

<lastImageSubscriptionRecoveryPolicy/>

</subscriptionRecoveryPolicy>

</policyEntry>

</policyEntries>

</policyMap>

</destinationPolicy>

<!-- Use the following to configure how ActiveMQ is exposed in JMX -->

<managementContext>

<managementContext createConnector="false"/>

</managementContext>

<!-- The store and forward broker networks ActiveMQ will listen to -->

<networkConnectors>

<!-- by default just auto discover the other brokers -->

<networkConnector name="default-nc" uri="multicast://default"/>

<!-- Example of a static configuration:

<networkConnector name="host1 and

uri="static://(tcp://host1:61616,tcp://host2:61616)"/>

-->

</networkConnectors>

<persistenceAdapter>

<amqPersistenceAdapter directory="activemq-data" maxFileLength="32mb"/>

</persistenceAdapter>

<!-- Use the following if you wish to configure the journal with JDBC -->

<!-- host2"

tomcat+activemq整合(4).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219