Hello,

I have a simple camel app that has some jms queue endpoints and I observed
using JConsole that the app keeps creating threads with
DefaultMessageListenerContainer-xxxx names every few seconds.

I have digged through the forums and other sources and found out that
setting CACHE_CONSUMER cache level on the DefaultMessageListenerContainer
should solve this problem. Unfortunately it does not or I am doing something
wrong.

Here is a snipped from the configuration file I use:

[code]
        <util:constant id="tt"
static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP"/>
        
        <bean id="jmsConnectionFactory"
                class="com.ibm.mq.jms.MQConnectionFactory">
                <property name="queueManager" value="ROTSQMTEST" />
                <property name="channel" value="ROTSCHANNEL" />
                <property name="port" value="1415" />
                <property name="hostName" value="192.168.254.80" />
                <property name="transportType" ref="tt" />
        </bean>

        <util:constant id="CL"
static-field="org.springframework.jms.listener.DefaultMessageListenerContainer.CACHE_CONSUMER"/>
        
        <bean id="bvbmq" class="org.apache.camel.component.jms.JmsComponent">
          <property name="connectionFactory" ref="jmsConnectionFactory"/>
          <property name="cacheLevel" ref="CL"/>
        </bean>
[/code]

BTW I am using apache-camel-1.4.0 and springframework-2.5.3
Any help would be appreciated.

Regards,
Horia
-- 
View this message in context: 
http://www.nabble.com/DefaultMessageListenerContainer-threading-issue-tp18811410s22882p18811410.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to