How to configure Client Acknowledgement on active mq end point in camel application

Solution Unverified - Updated -

Issue

Client Acknowledgement wont work with below configuration in blueprint.xml :

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
    <!-- Client configuration for Topic -->
    <bean class="org.apache.activemq.camel.component.ActiveMQComponent" id="amq">
        <property name="configuration" ref="jmsConfiguration"></property>
        <property name="concurrentConsumers" value="${activemq.concurrent.consumers}"></property>
    </bean>
    <bean
        class="org.springframework.jms.connection.JmsTransactionManager" id="transactionManager">
        <property name="connectionFactory" ref="jmsPooledConnectionFactory"></property>
    </bean>
    <bean class="org.apache.activemq.pool.PooledConnectionFactory"
        destroy-method="stop" id="jmsPooledConnectionFactory" init-method="start">
        <property name="maxConnections" value="${activemq.max.connections}"></property>
        <property name="connectionFactory" ref="jmsConnectionFactory"></property>
    </bean>
    <bean class="org.apache.activemq.ActiveMQConnectionFactory" id="jmsConnectionFactory">
        <property name="brokerURL" value="${activemq.brokerURL}"></property>
        <property name="userName" value="${activemq.username}"></property>
        <property name="password" value="${activemq.password}"></property>
    </bean>
    <bean class="org.apache.camel.component.jms.JmsConfiguration" id="jmsConfiguration">
        <property name="connectionFactory" ref="jmsPooledConnectionFactory"></property>
        <property name="transactionManager" ref="transactionManager"></property>
        <property name="transacted" value="false"></property>
        <property name="explicitQosEnabled" value="true"></property>
        <property name="cacheLevelName" value="${activemq.cacheLevelName}"></property>
        <property name="timeToLive" value="${activemq.timetolive}"></property>
        <property name="clientId" value="TSClient"></property>
       <property name="durableSubscriptionName" value="storeEventTDurableSubscription"></property> 
        <property name="acknowledgementModeName" value="CLIENT_ACKNOWLEDGE"></property>
    </bean>

Environment

Red Hat JBoss Fuse
- 6.2.1

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.