摘要: 接收的时候指定MessageIDActiveMQConnection connection = (ActiveMQConnection) new ActiveMQConnectionFactory().createConnection();Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);//P_1为消息IDMessageConsumer myConsumer = session.createConsumer(session.createTopic("TestMessage" 阅读全文
posted @ 2013-01-25 10:09 悟寰轩-叶秋 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 1 <broker xmlns="http://activemq.apache.org/schema/core" schedulePeriodForDestinationPurge="10000">2 <destinationPolicy>3 <policyMap>4 <policyEntries>5 <policyEntry queue=">" gcInactiveDestinations="true" inactiveTimoutBeforeGC=&q 阅读全文
posted @ 2013-01-25 10:08 悟寰轩-叶秋 阅读(6397) 评论(0) 推荐(0) 编辑