You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kannappan123 <ka...@gmail.com> on 2013/03/20 06:32:48 UTC

Fwd: [jira] [Commented] (CAMEL-5683) JMS connection leak with request/reply producer on temporary queues

Hi there

Any help in this regards would be much appreciated.

I am seeing a similar connection leak problem using IBM MQ. On the IBM
Websphere MQ Explorer the open input count of the reply queue keeps going
up by one for every request made.

Details of the API used are
camel version 2.10.3, Spring 3.1.0 and Websphere version 7.0.0 ‘s
com.ibm.mq.jms.MQQueueConnectionFactory

I have attached the classes of interest

The spring config file

<bean id="instalmentPlanRoute"
class="au.com.cgu.harvest.core.communications.JmsRoute">
  <property name="provider" value="jms-mq" />
  <property name="requestQueueName" value="instalmentPlanRequestQueue" />
  <property name="replyQueueName" value="instalmentPlanReplyQueue" />
</bean>

<bean id="jms-mq" class="org.apache.camel.component.jms.JmsComponent">
  <property name="connectionFactory" ref="mqWASConnectionFactory" />
  <property name="recoveryInterval" value="30000" />
  <property name="testConnectionOnStartup" value="true" />
  <property name="destinationResolver" ref="jmsDestinationResolver" />
  <property name="useMessageIDAsCorrelationID" value="true" />
</bean>

<jee:jndi-lookup id="mqWASConnectionFactory"
jndi-name="jms/harvestConnectionFactory" />

<bean id="instalmentPlanRequestQueue" class="com.ibm.mq.jms.MQQueue">
  <constructor-arg index="0" value="instalmentplanrequestqueue" />
</bean>
<bean id="instalmentPlanReplyQueue" class="com.ibm.mq.jms.MQQueue">
  <constructor-arg index="0" value="instalmentplanreplyqueue" />
</bean>




 Please do let me know if I am missing any config to close the connection
explicitly

Regards
Kanna


JmsRequest.java (684 bytes) <http://camel.465427.n5.nabble.com/attachment/5729468/0/JmsRequest.java>
JmsResponse.java (450 bytes) <http://camel.465427.n5.nabble.com/attachment/5729468/1/JmsResponse.java>
JmsRoute.java (1K) <http://camel.465427.n5.nabble.com/attachment/5729468/2/JmsRoute.java>
JmsService.java (3K) <http://camel.465427.n5.nabble.com/attachment/5729468/3/JmsService.java>




--
View this message in context: http://camel.465427.n5.nabble.com/Fwd-jira-Commented-CAMEL-5683-JMS-connection-leak-with-request-reply-producer-on-temporary-queues-tp5729468.html
Sent from the Camel - Users mailing list archive at Nabble.com.