Topic
No replies
Anshulkatta
Anshulkatta
1 Post
ACCEPTED ANSWER

Pinned topic IBM MQ JMS Queue

‏2013-08-19T14:17:45Z |

HI all , i am working on ibm mq using spring

So far good , when i have Queue connection established , and got the Queue up.

 

But the problem arises when the Queue is not up or Application is not able to connect to MQ.

I was struggling with the problem that the ibm mq framework was not throwing any exception but it is throwing and that is in 180 sec ( 3 Minutes ).

 

No i want to change this time to 10 seconds or less ,

 

how can i configure it to throw exception in 10 sec or less .

I am using the following configuration in Application Context.xml -

 

<bean id="mqConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">

<property name="hostName">

<value>${queue_hostname}</value>

</property>

<property name="port">

<value>${queue_port}</value>

</property>

<property name="queueManager">

<value>${queue_manager}</value>

</property>

<property name="channel">

<value>${queue_channel}</value>

</property>

<property name="transportType">

<value>1</value>

</property>

<property name="clientReconnectOptions" value="0" />

<property name="clientReconnectTimeout" value="2" />

</bean>