Topic
  • 1 reply
  • Latest Post - ‏2012-10-15T10:25:59Z by fjb_saper
SystemAdmin
SystemAdmin
8523 Posts

Pinned topic MQ not respoding if no request for one hour

‏2012-09-16T10:23:37Z |
I am connecting to MQ using web application. If there is no request to MQ for more than one hour MQ will go to sleep. For next request it will throw below error. But after that it will work fine.
Please guide if you think this is configuration issue. System is going halt if no request for one hour. How to avoid this situation?

javax.jms.JMSException: MQJMS2008: failed to open MQ queue "...."
at com.ibm.msg.client.wmq.v6.jms.internal.MQQueueServices.getQueueOpenException(MQQueueServices.java:914)
at com.ibm.msg.client.wmq.v6.jms.internal.MQQueueServices.getOutputQueue(MQQueueServices.java:725)
at com.ibm.msg.client.wmq.v6.jms.internal.JMSServicesMgr.getOutputQueue(JMSServicesMgr.java:210)
at com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createQProducer(MQSession.java:3147)
at com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createProducer(MQSession.java:2872)
at com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createProducer(MQSession.java:2929)
at com.ibm.msg.client.jms.internal.JmsSessionImpl.createProducer(JmsSessionImpl.java:1122)
at com.ibm.msg.client.jms.internal.JmsQueueSessionImpl.createSender(JmsQueueSessionImpl.java:131)
at com.ibm.mq.jms.MQQueueSession.createSender(MQQueueSession.java:147)
at com.ibm.ejs.jms.JMSQueueSenderHandle.<init>(JMSQueueSenderHandle.java:101)
at com.ibm.ejs.jms.JMSQueueSessionHandle.createSender(JMSQueueSessionHandle.java:234)
Updated on 2012-10-15T10:25:59Z at 2012-10-15T10:25:59Z by fjb_saper
  • fjb_saper
    fjb_saper
    175 Posts

    Re: MQ not respoding if no request for one hour

    ‏2012-10-15T10:25:59Z  
    Nice JMSException... where is the linked Exception?

    Could be that you have a firewall rule closing the connection after one hour of inactivity....