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.

Reply via email to