Atomikos Forum

pooled JMS connections cannot be recovered when broken

Hi,

We're using atomikos to manage connection pooling and the transactions of jms access. We have spring beans defined as below.
  <bean id="jmsConnectionFactory" class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
            <property name="hostName" value="${mqdef.hostName}" />
            <property name="port" value="${mqdef.port}" />
            <property name="queueManager" value="${mqdef.queueManager}" />
            <property name="channel" value="${mqdef.channel}" />
            <property name="transportType" value="${mqdef.transportType}" />
    </bean>

    <bean id="atomikosConnectionFactory" class="com.atomikos.jms.AtomikosConnectionFactoryBean" init-method="init" destroy-method="close">
            <property name="xaConnectionFactory"><ref bean="jmsConnectionFactory"/></property>
            <property name="uniqueResourceName" value="ATOMIKOS_JMS_TEST"/>
            <property name="poolSize" value="5"/>
    </bean>

    <bean id="cachingConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
          <property name="targetConnectionFactory" ref="atomikosConnectionFactory" />
          <property name="cacheProducers" value="false" />
          <property name="sessionCacheSize" value="5" />
    </bean>
    
    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
        <property name="connectionFactory" ref="cachingConnectionFactory" />
        <property name="defaultDestinationName" value="QUEUE.TEST" />
    </bean>    

Currently, we run into a problem when connections are broken in the connection pool, we see CachingConnectionFactory trying to reset the connections, but don't see new connections are acquired from the ibm connection factory. The application ends up hangin because of no working connections available.

Could anyone please let us know if we miss anything in the configuration or we run into some limitation of the current implementation of the used technologies.

Thanks in advance for any help or hint anyone can offer.
Y Zhao Send private email
Thursday, February 11, 2016
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics