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 » WebSphere Message Broker (ACE) Support » TcpIPServerOutput node keep connection open

Post new topic  Reply to topic
 TcpIPServerOutput node keep connection open « View previous topic :: View next topic » 
Author Message
Jnn
PostPosted: Tue May 31, 2016 1:51 pm    Post subject: TcpIPServerOutput node keep connection open Reply with quote

Newbie

Joined: 23 May 2016
Posts: 4

Hi, I have implemented a message flow (WMB 7) which communicates with external TCPIP Server and it need "ok" answer, and keep the connection open for future messages, but the only advanced configuration of TCPIPServerOutput node that works, is when set "close connection = After data has been sent"



I tried, which make more sense, but don't send any answer until close connection by the consumer





I followed the documentation:
1. https://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ac67340_.htm
2. https://www.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac67340_.htm
3. https://www.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac67410_.htm


I'd like to think that is possible keep the socket connection open, or maybe I'm wrong, thanks for any help
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 01, 2016 4:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This is an excellent post, thanks for the great amount of detail.

I'm not an expert in this particular area. But it seems like you want to receive connections from external TCP clients? And then send a response to them over the same socket?

I *think* you want to set Output Stream Modification to one of the reserve choices.

You might also want/need/something to use a ClientOutput node instead of a server output node. Much less sure of this...

You can also use your Toolkit to import and work with samples - https://www.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ax20230_.htm

I also vaguely remember some kind of developer works article or something on using TCP with broker..

And if you're really using v7... you should really get everyone involved committed to upgrading to v9... 7 is out of support and 8 is going to be out of support by the time you get upgraded..
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Jnn
PostPosted: Wed Jun 01, 2016 3:49 pm    Post subject: Reply with quote

Newbie

Joined: 23 May 2016
Posts: 4

Yes, I want to receive connections from external TCP clients and then send a response to them over the same socket

I try TCPIPClientOutput node, following the sample even using "Close connection: After data has been sent", just don't send any message to client



The only way that works is: (send answer to client)



but, I need to keep connection open

Again, thanks for any help, comment or suggestion

...and yes! I need the upgrade, it will take a time, but I'll hope can take the upgrading for v10
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 02, 2016 4:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Erm. I think you want the Reserve option on the input node, not the output node.

You want to keep the connection received from the input node and use it at the output nodes.

Then, I *think*, maybe, the output node connection closing options should take effect.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Jnn
PostPosted: Thu Jun 16, 2016 6:40 am    Post subject: Reply with quote

Newbie

Joined: 23 May 2016
Posts: 4

"Then, I *think*, maybe, the output node connection closing options should take effect." - mqjeff

I tried! but I didn't have success

The regular way is: the client open connection, send data, wait for answer, and finally close connection, so I'm using "Close connection: After data has been sent" with TCP IP Server output node



Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TcpIPServerOutput node keep connection open
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.