On 08/11/2007, gent911 <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. > I was trying out the 'consumerType' option, as well as > 'serverSessionFactory'. It does not bring me any further, I receive: > > "javax.jms.JMSException: Session pool provided an invalid session type: > class org.apache.activemq.pool.PooledSession"
You shouldn't use the PooledConnectionFactory when using JCA or ServerSessionPool type containers - PooledConnectionFactory is only really designed for use with JmsTemplate when sending messages. The ServerSessionPool container and JCA are already pooling containers - so a regular ActiveMQConnectionFactory would do. BTW also see my last reply in the other thread on how you can change the caching level in the MessageListenerContainer to improve caching (but also reduce due to a spring bug, the ability to use a single transaction for consuming and sending messages).. http://www.nabble.com/Camel-keeps-adding-and-removing-Consumers-when-using-DefaultMessageListenerContainer-tf4778316s22882.html -- James ------- http://macstrac.blogspot.com/ Open Source SOA http://open.iona.com
