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 IndexWebSphere Message Broker SupportMix Reponses when receiving data over TCP IP from server

Post new topicReply to topic
Mix Reponses when receiving data over TCP IP from server View previous topic :: View next topic
Author Message
junaid
PostPosted: Mon Oct 05, 2020 5:45 am Post subject: Mix Reponses when receiving data over TCP IP from server Reply with quote

Acolyte

Joined: 29 Nov 2018
Posts: 57

Hi,

I am using TCPIP Client nodes to connect server from IBM Integration Bus.

Scenario:
1st flow : HTTPInput> ESQL transform > Reset content descriptor > sub flow > ESQL transform > Reset content descriptor >HTTPReply

2nd flow : Timer > ESQL Hardcode > sub flow > ESQL > Update in Cache >

sub flow : Input > TCP Client Out > TCP Client Receive > Output

Server accepts multiple request fix length over TCPIP with connection close NO.

ARE YOU ALIVE message is sent on every 10 seconds to server as described in 2nd flow.

Problem:
Problem is that the I am getting data of 2nd flow i.e ARE YOU ALIVE . Message which is received by tcp client receive contains like following.
ARE_YOU_ALIVE1238583012000000 202010011033000

I have tried following combinations on advanced tab of tcp client out and leave unchanged when receiving .

Reserve input stream Output stream (for use by future TCPIP nodes) then release at end of flow

I have gone multiple post on mqseries as well on other sites but did not get proper solution for that.


Regards,
Junaid Ahmed
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 07, 2020 1:46 pm Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20394
Location: LI,NY

So basically you have two processes sharing a client socket and you wonder why they get mixed up??

This should be a design problem. Separate the two flows. You can have a hart-beat flow to the server, and a different actual flow to get the data.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
junaid
PostPosted: Wed Oct 07, 2020 9:59 pm Post subject: Mix Reponses when receiving data over TCP IP from server Reply with quote

Acolyte

Joined: 29 Nov 2018
Posts: 57

There are 2 separate messages and 2 separate requests one is ARE_YOU_ALIVE and 2nd is fix length message. In response of 2nd flow I was getting ARE_YOU_ ALIVE + 2nd flow msg.
Well it is resolved now .
The server is also sending same message ARE_YOU_ ALIVE without sending any request . It is checked by tcpdump from source to destination. That is the cause when response is received of 2nd flow on stream it is adding first ARE_YOU_ ALIVE and then incomplete message. And this create mixture of responses in responses.

regards,
JA
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Oct 08, 2020 3:24 pm Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2173
Location: Melbourne, Australia

What is the app at the other end of the TCP connection? If you are doing low level TCP send and receive, you need to handle all possible received data and its order of arrival.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportMix Reponses when receiving data over TCP IP from server
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.