Author |
Message
|
yumiko |
Posted: Mon Apr 17, 2006 4:43 am Post subject: How to connect to a sender channel? |
|
|
Newbie
Joined: 17 Apr 2006 Posts: 8
|
I can connect to a server connection channel. But i can't can't connect to a sender channel.
Is there anyone can give an example code to connect to sender channel? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 17, 2006 4:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Only a Receiver or Requester channel can connect to a Sender channel.
Client applications only and always connect to Server Connection Channels.
The Intercommunications guide and the Client manuals are pretty specific about this. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
yumiko |
Posted: Mon Apr 17, 2006 5:02 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2006 Posts: 8
|
Thanks a lot.
ask another question
I want to set "Disconnect Interval" to my channel. But i can't find this attribute in server connection channel . |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 17, 2006 5:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Right.
It's not there.
You can use KeepAlive. This is a property of the queue manager, and instructs it to use the OS level TCP KeepAlive number. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
yumiko |
Posted: Mon Apr 17, 2006 5:33 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2006 Posts: 8
|
How to set the KeepAlive property?
I was told to config "mqs.ini" to set the KeepAlive property. But i can't find mqs.ini in my folder. The version of my MQ product is "MQ v53". |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 17, 2006 5:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you didn't find mqs.ini, then you must be on Windows.
In this case, you can configure this in the Services MMC - it should be on the properties of the queue manager.
But why are you trying to add a disconnect timeout? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
yumiko |
Posted: Mon Apr 17, 2006 5:54 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2006 Posts: 8
|
Because i want that MQ can close the channel by itself while my client program haven't closed channel correctly .
By the way, i can't find the KeepAlive property of the queue manager in the Services MMC |
|
Back to top |
|
 |
yumiko |
Posted: Mon Apr 17, 2006 5:53 pm Post subject: |
|
|
Newbie
Joined: 17 Apr 2006 Posts: 8
|
Is there anyone can tell me how to set KeepAlive property on windows sysytem in details? |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Apr 20, 2006 12:22 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
First MQ does not close any IP connection. The KeepAlive attribute only advises the operating system, to check existing IP connections and keep them alive. Only when the partner does not respond, the IP connection is cleaned up.
It is not a sort of disconnection interval!
You can enable the KeepAlive by opening the MQServices (not MQExplorer), right-click the QMgr, select Properties and choose TCP. Select the checkbox KeepAlive. Store the change by pressing Apply. _________________ Regards
Hubert |
|
Back to top |
|
 |
|