camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smadarapu <>
Subject Configuring JMS connection pool for WMQ
Date Tue, 15 Apr 2014 17:12:06 GMT

I have been successfully running several routes connecting to a JMS queue
using Websphere MQ. I have several routes each of them handling specific
messages (using selectors). No I am at a point where the number of
connections to the queue are growing and want to use a connection pool.

I am trying the CachingConnectionFactory but running into class cast

<bean id="inCachingConnectionFactory"
	<property name="targetConnectionFactory" ref="inboundMqConnectionFactory1"
	<property name="sessionCacheSize" value="5" />

<bean id="inboundWebsphereMq1"
	<property name="connectionFactory" ref="inCachingConnectionFactory" />
	<property name="destinationResolver" ref="jmsDestinationResolver" />
	<property name="transacted" value="true" />
	<property name="transactionManager" ref="txManager1" />

<bean id="inboundMqConnectionFactory1"
	<property name="hostName" value="${isi.inbound.queue.host2}" />
	<property name="port" value="${isi.inbound.queue.port}" />
	<property name="queueManager" value="${isi.inbound.queue.queuemanager2}" />
	<property name="channel" value="${isi.inbound.queue.channel2}" />
	<property name="transportType" value="${isi.queue.transportType}" />

Could not find a WMQ specific connection pool and according to this post
the pool support has been removed by WMQ, not sure why.

Have any body have success using a connection pool with camel, spring, wmq ?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message