I assume upgrading is not an option for you? Camel 2.2 was released more than two years ago and is not supported anymore...
[1] https://issues.apache.org/jira/browse/CAMEL/fixforversion/12315686 Best, Christian On Thu, Jul 19, 2012 at 5:07 PM, ychawla <premiergenerat...@yahoo.com>wrote: > Hello All, > I have an application running that has frequent lulls in activity. What I > find is that the activemq consumers lose their connections. > > I have a read few posts about this and taken the suggestions to set > keepAlive to true and use a connection pool: > > [1] keep alives > > http://camel.465427.n5.nabble.com/Camel-ActiveMQ-queue-listener-consumer-drops-after-inactivity-td3299709.html > > [2] pooled connection factory > > http://camel.465427.n5.nabble.com/Does-activemq-jms-component-have-keepalive-option-tc4282121.html#a4283140 > > > Here are my activemq beans: > > <bean id="jmsConnectionFactory" > class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" value="tcp:// > 0.0.0.0:61616?keepAlive=true" /> > </bean> > > <bean id="pooledConnectionFactory" > class="org.apache.activemq.pool.PooledConnectionFactory"> > <property name="maxConnections" value="8" /> > <property name="maximumActive" value="500" /> > <property name="connectionFactory" ref="jmsConnectionFactory" /> > </bean> > > <bean id="jmsConfig" > class="org.apache.camel.component.jms.JmsConfiguration"> > <property name="connectionFactory" > ref="pooledConnectionFactory"/> > <property name="transacted" value="false"/> > <property name="concurrentConsumers" value="10"/> > </bean> > > <bean id="activemq" > class="org.apache.activemq.camel.component.ActiveMQComponent"> > <property name="configuration" ref="jmsConfig"/> > </bean> > > I am using Camel 2.2 and ActiveMQ 5.2. > > To confirm that the listeners stop, I go to the admin page and see no > consumers: > http://localhost:8161/admin/queues.jsp > > Any ideas? > > Thanks, > Yogesh > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-keeps-dropping-ActiveMQ-connections-tp5716255.html > Sent from the Camel - Users mailing list archive at Nabble.com. >