|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TcpIPServerOutput node keep connection open |
« View previous topic :: View next topic » |
Author |
Message
|
Jnn |
Posted: Tue May 31, 2016 1:51 pm Post subject: TcpIPServerOutput node keep connection open |
|
|
 Newbie
Joined: 23 May 2016 Posts: 4
|
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 01, 2016 4:04 am Post subject: |
|
|
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 |
|
 |
Jnn |
Posted: Wed Jun 01, 2016 3:49 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Jun 02, 2016 4:15 am Post subject: |
|
|
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 |
|
 |
Jnn |
Posted: Thu Jun 16, 2016 6:40 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|