camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anaCortes <anquiroe...@hotmail.com>
Subject Re: JMS - Shared fixed reply queue doesn´t consume all the messages
Date Mon, 05 Nov 2012 14:51:17 GMT
Hi,

> What version of Camel are you using?
2.10.2

> And how have you configured the JMS component

<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
    <property name="configuration" ref="amqConfigNoTransaction"/>
</bean>

<bean id="amqConfigNoTransaction" parent="amqCommonConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
    <property name="transacted" value="false"/>
</bean>

<bean id="amqCommonConfig" abstract="true"
class="org.apache.camel.component.jms.JmsConfiguration">
    <property name="connectionFactory" ref="cachedConnectionFactory"/>
    <property name="concurrentConsumers" value="1"/>
    <property name="exceptionListener" ref="jmsExceptionListener"/>
</bean>

<bean id="cachedConnectionFactory"
        class="org.springframework.jms.connection.CachingConnectionFactory">
    <property name="targetConnectionFactory" ref="connectionFactory"/>
    <property name="sessionCacheSize" value="100"/>
    <property name="cacheConsumers" value="false" />
</bean>

<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="${activemq.brokerURL}"/>
    <property name="userName" value="${activemq.username}"/>
    <property name="password" value="${activemq.password}"/>
    <property name="exceptionListener" ref="jmsExceptionListener"/>
    <property name="transportListener" ref="jmsTransportListener"/>
    <property name="redeliveryPolicy" ref="redeliveryPolicy"/>
</bean>

...

> and the route where you do request/reply? 

.to(ExchangePattern.InOut,
"activemq:ActiveMQ.DLQ?replyTo=xxx.REPLY&requestTimeout=255000&receiveTimeout=250&timeToLive=510000")

How could this cacheConsumer="false" affect to the performance? 



--
View this message in context: http://camel.465427.n5.nabble.com/JMS-Shared-fixed-reply-queue-doesn-t-consume-all-the-messages-tp5721700p5722155.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message