camel-users mailing list archives

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

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
exceptions...

<bean id="inCachingConnectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
	<property name="targetConnectionFactory" ref="inboundMqConnectionFactory1"
/>
	<property name="sessionCacheSize" value="5" />
</bean>

<bean id="inboundWebsphereMq1"
class="org.apache.camel.component.jms.JmsComponent">
	<property name="connectionFactory" ref="inCachingConnectionFactory" />
	<property name="destinationResolver" ref="jmsDestinationResolver" />
	<property name="transacted" value="true" />
	<property name="transactionManager" ref="txManager1" />
</bean>

<bean id="inboundMqConnectionFactory1"
class="com.ibm.mq.jms.MQQueueConnectionFactory">
	<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}" />
</bean>

Could not find a WMQ specific connection pool and according to this post
http://stackoverflow.com/questions/8922339/how-to-pooling-the-jms-connection-in-a-standalone-java-applications
the pool support has been removed by WMQ, not sure why.

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

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Configuring-JMS-connection-pool-for-WMQ-tp5750258.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message