activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From softwbc <soft...@163.com>
Subject Re: activemq 3000 messages can not be received
Date Fri, 19 Aug 2016 02:55:16 GMT
and the consoumer configuration
    <bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL" value="${mq.brokerURL}" />
		<property name="userName" value="${mq.userName}" />
		<property name="password" value="${mq.password}" />
    </bean>
	<bean id="receiveQueueDestination"
class="org.apache.activemq.command.ActiveMQQueue">
		<constructor-arg index="0" value="${mq.queues}" />
	</bean>
	<bean id="receiveListenerService"
class="com.xinhua.activemq.listener.ReceiveListenerService">
	</bean>
	
	<bean id="typeConverter"
class="com.xinhua.activemq.converter.TypeConverter">
	</bean>
	<bean id="queueListener"
class="com.xinhua.activemq.adapter.MessageListenerAdapter">
		<constructor-arg ref="receiveListenerService"></constructor-arg>
		<property name="defaultListenerMethod" value="receive" />
		<property name="messageConverter" ref="typeConverter" />
	</bean>
	<bean id="queueListenerContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
		<property name="connectionFactory" ref="connectionFactory" />
		<property name="destination" ref="receiveQueueDestination" />
		<property name="messageListener" ref="queueListener" />
		<property name="sessionAcknowledgeModeName" value="CLIENT_ACKNOWLEDGE"/>
		<property name="concurrentConsumers" value="4" />
	</bean>



--
View this message in context: http://activemq.2283324.n4.nabble.com/activemq-3000-messages-can-not-be-received-tp4715396p4715644.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message