ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » How to handle MQ API under network delay of 5 seconds

Post new topic  This topic is locked: you cannot edit posts or make replies.
 How to handle MQ API under network delay of 5 seconds « View previous topic :: View next topic » 
Author Message
abhay09
PostPosted: Wed Dec 27, 2017 1:11 am    Post subject: How to handle MQ API under network delay of 5 seconds Reply with quote

Acolyte

Joined: 31 May 2016
Posts: 66

Hi Guys,

I have an application that uses MQ Java API to connect to MQ and perform operations like get/put/access.

MQ server/client jars: 8

In my testing to simulate slow network, I've added a network simulator between my application and MQ server to add a network delay of 5 seconds.
Command:
sudo -S /sbin/tc qdisc add dev eth0 root netem delay 5000ms

This command will delay every request to MQ server by 5 seconds.

Now in my testing, I am getting 2537, channle not available.

com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2537'.
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:250)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:450)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:487)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:97)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:194)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:868)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:816)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:758)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:200)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:910)



I've gone through the docs, it means firewall is blocking or max connection limit.

Please let me know how to handle this with a network delay of 5 seconds.
How can we handle this situation in slow network.


Many Thanks!
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 02, 2018 6:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Don't double post!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to handle MQ API under network delay of 5 seconds
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.