Hi,

I am using Camel 2.0-M2 with the JMS Component and ActiveMQ. I had some
performance issues until I discovered the hint in the documentation and
switched to the PooledConnectionFactory. It is configured like this: 

  <bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
destroy-method="stop">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616"/>
      </bean>
    </property>
  </bean>

  <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
      <property name="connectionFactory" ref="jmsFactory"/>
  </bean>

The performance is much better now, but I have another problem. When I test
my application, I have a single queue from witch messages are not consumed.
At some point, it has 2110 pending messages and the application stops until
I purge the pending messages with the Web console.

I think it might be an issue with connection pooling and prefetching as
described here:
http://activemq.apache.org/what-is-the-prefetch-limit-for.html

With my configuration, is the PooledConnectionFactory only used for
Producers or also for Consumers?

Any help or useful hints on how to change my configuration is much
appreciated!

M.S.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-JMS-Component-with-PooledConnectionFactory-tp25010464p25010464.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to