|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
VPN switches to sleep mode, IBM XMS listener stops receiving |
« View previous topic :: View next topic » |
Author |
Message
|
dudetom |
Posted: Fri Oct 20, 2017 5:37 am Post subject: VPN switches to sleep mode, IBM XMS listener stops receiving |
|
|
Apprentice
Joined: 29 Sep 2017 Posts: 45
|
In a production environment, we have IBM MQ Client v8.0.0.5 running and connected to the Queue Manager server. The connection is established using a VPN tunnel. Our System Engineer said that one of our servers was upgraded and that led to VPN switching to sleep mode until data passes from our side to the server but that didn't happen.
The IBM listener that was running during that time didn't receive any event about a connection that was closed.
All the messages were stacked on the server queue and the client side listener couldn't consume those because the VPN was sleeping. On application level I have no idea how I can discover such behavior (VPN going to sleep). The System Engineer says to implement some kind of pinging system which pings the IBM server each 15 minute so the connection (VPN tunnel) stays open.
I read about heartbeat and keepalive intervals. Are these meant to be used in such problems like this?
How I connect (.NET IBM.XMS library):
Code: |
var factoryFactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
var cf = factoryFactory.CreateConnectionFactory();
cf.SetStringProperty(XMSC.WMQ_HOST_NAME, host);
cf.SetIntProperty(XMSC.WMQ_PORT, port);
cf.SetStringProperty(XMSC.WMQ_CHANNEL, channel);
cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT);
cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, queuemanager);
cf.SetStringProperty(XMSC.USERID, user);
cf.SetStringProperty(XMSC.PASSWORD, password);
cf.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_OPTIONS, XMSC.WMQ_CLIENT_RECONNECT);
connection = cf.CreateConnection();
connection.ExceptionListener = ExceptionCallback;
session = connection.CreateSession(false, AcknowledgeMode.AutoAcknowledge);
destination = session.CreateQueue(queuename);
consumer = session.CreateConsumer(destination);
consumer.MessageListener = listener;
connection.Start();
private void ExceptionCallback(Exception ex)
{
//log exception, in case of unexpected error -> exit with code -1
} |
Thanks for any help!! I'm clueless |
|
Back to top |
|
 |
Vitor |
Posted: Fri Oct 20, 2017 6:59 am Post subject: Re: VPN switches to sleep mode, IBM XMS listener stops recei |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dudetom wrote: |
The IBM listener that was running during that time didn't receive any event about a connection that was closed. |
The VPN wouldn't raise an event. It thinks the listener has disconnected and therefore there's nothing to talk to.
dudetom wrote: |
On application level I have no idea how I can discover such behavior (VPN going to sleep). |
You almost certainly can't.
dudetom wrote: |
The System Engineer says to implement some kind of pinging system which pings the IBM server each 15 minute so the connection (VPN tunnel) stays open.
I read about heartbeat and keepalive intervals. Are these meant to be used in such problems like this? |
.
Yes. Speak to your MQ admin. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|