Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

com.ibm.mq.MQException: Completion Code 2, Reason 2009 with Jboss

843830Oct 3 2007 — edited Oct 11 2007
Hi All,

I am using mq in my application(com.ibm.mq.jar )and i am placing messages on MQ queue in my application.

If I keep the application idle for more than two hours its loosing the connection and giving the following exception.

com.ibm.mq.MQException: Completion Code 2, Reason 2009
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:166)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:196)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:213)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:419)


Once I restart the application,it is working fine again.This is happening every time when I keep the application idle for more than couple of hours.I am using Jboss application server.

Apparently,it is not able to load the services.Could some one help me on this please.

Thanks
kanth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2007
Added on Oct 3 2007
1 comment
585 views