|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message getting delivered twice |
« View previous topic :: View next topic » |
Author |
Message
|
morphi |
Posted: Thu Jun 04, 2009 11:24 am Post subject: Message getting delivered twice |
|
|
Newbie
Joined: 08 Mar 2009 Posts: 4
|
Hi All,
I have a program(connecting as client) which is reading the incoming message , reads the reply to queue and queue manager fields and sends a reply to that particular queue. I am doing the get and put under syncpoint and comitting after each get and put.
The problem is that when i see the output queue, there are two replies for each input message. The application name for one of the message is the exe name and for the duplicate message its the destination queue manager. The logs say
AMQ9208: Error on receive from host localhost (127.0.0.1).
EXPLANATION:
An error occurred receiving data from localhost (127.0.0.1) over TCP/IP. This
may be due to a communications failure.
ACTION:
The return code from the TCP/IP (recv) call was 10054 (X'2746'). Record these
values and tell the systems administrator.
I have the windows mq server(5.3) and client setup in my computer.
Please help. Thank you. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jun 04, 2009 11:27 am Post subject: Re: Message getting delivered twice |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
morphi wrote: |
I have the windows mq server(5.3) and client setup in my computer. |
That's the wrong version to use.
It has nothing to do with your problem, but it is still wrong to use MQ v5.3 for anything. |
|
Back to top |
|
 |
zpat |
Posted: Thu Jun 04, 2009 12:45 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Check the backout count of the message after the MQGET - if it is more than zero then you have read it before.
I assume the commit is after the get and put, not after each of them? |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Jun 04, 2009 4:19 pm Post subject: Re: Message getting delivered twice |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
morphi wrote: |
...AMQ9208: Error on receive from host localhost (127.0.0.1).
EXPLANATION:
An error occurred receiving data from localhost (127.0.0.1) over TCP/IP. This may be due to a communications failure.
ACTION:
The return code from the TCP/IP (recv) call was 10054 (X'2746'). Record these values and tell the systems administrator.
|
Quote: |
http://msdn.microsoft.com/en-us/library/ms740668.aspx states:
WSAECONNRESET 10054
Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET. |
This usually happens when a program terminates without disconnecting the MQ Client connection. The TCP/IP Socket session died at one end.
Network or system failure or TCP stack failure is another possible cause, but its unlikely because you are on the 'localhost'. _________________ Glenn |
|
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
|
|
|
|