Yes, I do have cache level set to CACHE_CONSUMER as recommended.       

Below is my spring configuration,

        <bean id="jms"
class="org.apache.activemq.camel.component.ActiveMQComponent">                
                <property name="configuration" ref="activeMQConfig"/>           
        
                <property name="transacted" value="true"/>
                <property name="transactionManager" ref="jmsTxManager"/>
        </bean>

        <bean id="activeMQConfig"
                
class="org.apache.activemq.camel.component.ActiveMQConfiguration">
                <property name="connectionFactory" ref="conFactory" />
                <property name="cacheLevelName" value="CACHE_CONSUMER" />
                <property name="concurrentConsumers" value="10" />              
        </bean>
        
        <bean id="conFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
                <property name="brokerURL" value="${activemq.broker.url}" />
                <property name="userName" value="${userName}" />
                <property name="password" value="${password}" />
                <property name="watchTopicAdvisories" value="false" />
        </bean>
        
        <bean id="jmsTxManager"
class="org.springframework.jms.connection.JmsTransactionManager">
                <property name="connectionFactory" ref="conFactory" />
        </bean>


Claus Ibsen-2 wrote
> On Mon, Apr 14, 2014 at 3:24 PM, nqbeel &lt;

> a.nabeelahamed@

> &gt; wrote:
>> Trying to set up a route with transaction handling on a camel, this leads
>> to
>> connection to the activeMQ drop and reconnect every few milliseconds is
>> this
>> expected, is there a work around?
>>
> 
> Do you use caching as recommended here, eg see that 2nd box on the top
> of the page
> http://camel.apache.org/jms
> 
> 
>> Logs showing repeatedly reconnecting to ActiveMQ server:
>>
>> ActiveMQ FailoverTransport Successfully connected to
>> ssl://serveraddress:61617
>> ActiveMQ FailoverTransport Successfully connected to
>> ssl://serveraddress:61617
>> ActiveMQ FailoverTransport Successfully connected to
>> ssl://serveraddress:61617
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-transaction-handler-forces-reconnecting-to-ActiveMQ-tp5750224.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: 

> cibsen@

> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-transaction-handler-forces-reconnecting-to-ActiveMQ-tp5750224p5750261.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to