How to configure the cJMS component with the *exclusive consumer* feature

Talend Version          6.3.1

Summary

Using the ActiveMQ exclusive consumer feature with Talend route.
Additional Versions 6.2.1
Product Talend ESB
Component  
Problem Description  
Problem root cause  
Solution or Workaround

To enable the exclusive consumer feature, you would need to add the destination.consumer.exclusive=true parameter to the queue property of cJMS. However, this parameter is not currently supported with cMQConnectionFactory + cJMS.

 

Instead, you need to use the generic cMessagingEndpoint component, with the following URI as an example:

activemq:queue:SampleQ1?destination.consumer.exclusive=true

Where activemq bean is defined in the spring config file as follows:

 <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
       <property name="brokerURL" value="tcp://localhost:61616"/>
       <property name="userName" value="tadmin"/>
       <property name="password" value="tadmin"/>
  </bean>
Adjust the values for brokerURL, userName, and password as appropriate.
JIRA ticket number  
Version history
Revision #:
4 of 4
Last update:
‎08-01-2017 07:36 PM
Updated by:
 
Labels (3)
Contributors
Tags (1)