Author |
Message
|
atheek |
Posted: Mon May 14, 2007 7:26 am Post subject: Reg. Server Connection channel |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Hi all,
I wrote a jave program to connect to the qmgr in client mode, using the Channel SYSTEM.DEF.SVRCONN to connect to the qmgr:
I was able to post messages to queue and everything was working fine.
I like to know whether the server connection channel "SYSTEM.DEF.SVRCONN " was actually used in posting the message to the queue.
Because the status of SYSTEM.DEF.SVRCONN was inactive after posting the message. I expected it to be running. Like sender channels used to trigger receiver channels, i expected serverCONN channels to be triggered by clientCONN channels. Was this actually happening? Please clarify this.
Many thanks in advance. |
|
Back to top |
|
 |
dhanaraj |
Posted: Mon May 14, 2007 9:00 am Post subject: |
|
|
 Voyager
Joined: 10 Aug 2004 Posts: 92
|
There is lot of difference between MQI channels and Message Channels.
If you use any one of the mode (bind or client) to communicate the Queues it will always active like sender channels.
Thanks
Dhanaraj |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon May 14, 2007 1:14 pm Post subject: Re: Reg. Server Connection channel |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
atheek wrote: |
Hi all,
I wrote a jave program to connect to the qmgr in client mode, using the Channel SYSTEM.DEF.SVRCONN to connect to the qmgr:
I was able to post messages to queue and everything was working fine.
I like to know whether the server connection channel "SYSTEM.DEF.SVRCONN " was actually used in posting the message to the queue.
Because the status of SYSTEM.DEF.SVRCONN was inactive after posting the message. I expected it to be running. Like sender channels used to trigger receiver channels, i expected serverCONN channels to be triggered by clientCONN channels. Was this actually happening? Please clarify this.
Many thanks in advance. |
The svrconn channel is only active the time between connect and disconnect of the qmgr.
So if your connect post and disconnect is really quick you might not even see the difference in the svrconn channel status...
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 14, 2007 1:19 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can look at the message count of the channel.
Or you can set the MCAUSER of the channel to some user that does not exists, and see if anyone comes to ask why they're getting a 2035 all of a sudden. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ashu |
Posted: Mon May 14, 2007 10:23 pm Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
Quote: |
I like to know whether the server connection channel "SYSTEM.DEF.SVRCONN " was actually used in posting the message to the queue. |
Comment the line in the java code where you say
Code: |
MQEnvironment.channel="SYSTEM.DEF.SVRCONN" |
and then recompile and try to put the message...
This might prove the point.
Regards, _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
Back to top |
|
 |
atheek |
Posted: Tue May 15, 2007 1:14 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Quote: |
The svrconn channel is only active the time between connect and disconnect of the qmgr. |
I too was thinking on similar lines..Many thanks for confirming! |
|
Back to top |
|
 |
atheek |
Posted: Tue May 15, 2007 1:39 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Quote: |
You can look at the message count of the channel |
How can I see the message count of an inactive channel? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 15, 2007 7:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
atheek wrote: |
Quote: |
You can look at the message count of the channel |
How can I see the message count of an inactive channel? |
dis chs(mychl) saved _________________ MQ & Broker admin |
|
Back to top |
|
 |
|