Deadlock during Camel route shutdown using AMQP messaging protocol

Solution Verified - Updated -

Issue

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>

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

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

    <bean id="amqConnectionFactory" 
          class="org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl" 
          factory-method="createFromURL">
        <argument value="${endpointUriAMQP}"/>
    </bean>

Environment

  • JBoss Fuse 6.3.0
  • AMQP QPid 0.32
  • Apache Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.