Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!

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

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

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

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:12:51 AM

Talend Version         6.3.1

Summary

Using the ActiveMQ exclusive consumer feature with Talend route.
Additional Versions6.2.1
ProductTalend 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
Last update:
‎2024-02-09 01:22 PM
Updated by: