camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gent911 <>
Subject DefaultMessageListenerContainer, pooling problem
Date Thu, 08 Nov 2007 17:40:32 GMT


Spring 2.1
Camel 1.2
ActiveMQ 5 the latest snapshot

DefaultMessageListenerContainer is restarted all the time in a new thread.

Such a behaviour is not exactly what I want to see, I'd like to use pooling
and finally stop the thread from constant restarting. 
I have written a small example, but I cant seem to find the appropriate
solution, looking through the mailing list did not bring any results either.

Here is a the snippet from spring configuration:

--- cut ---
<bean id="jmsFactory"
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:6666" />

<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
  <property name="connectionFactory" ref="jmsFactory" />
  <property name="camelContext" ref="camel" />

<bean id="queueTest" factory-bean="camelEndpointFactory"
  <constructor-arg value="jms:queueTest" />
--- end ---

It seems to work alright with Spring's
ServerSessionMessageListenerContainer, but refuses to function with Camel.
I'd appreciate any hint, thnx.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message