Deadlock during Camel route shutdown using AMQP messaging protocol

Solution Verified - Updated -


At random, the Camel route hangs whenever it gets shut down. We have a route configuration in our blueprint similar to this:

    <bean id="amqp" class="org.apache.camel.component.amqp.AMQPComponent">
        <property name="configuration" ref="jmsConfig" />

    <bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration" >
        <property name="connectionFactory" ref="jmsCachingConnectionFactory" /> 
        <property name="cacheLevelName" value="CACHE_CONSUMER" />

    <bean id="jmsCachingConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
      <property name="targetConnectionFactory" ref="amqConnectionFactory" />

    <bean id="amqConnectionFactory" 
        <argument value="${endpointUriAMQP}"/>


  • JBoss Fuse 6.3.0
  • AMQP QPid 0.32
  • Apache Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In