Author |
Message
|
Michael Dag |
Posted: Mon Jul 05, 2004 7:33 am Post subject: Channel start updates ALTDATE, ALTTIME |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Just curious I guess...
(on WMQ 5.3 CSD4... Windows,Solaris/AIX...)
I noticed a channel start updates the ALTDATE and ALTTIME of a transmission queue.
If thought it was when the channel is started, the trigger is set to NOTRIGGER by the channel initiator or something, but this is not the
case.
So if someone can enlighten me on why ALTDATE and ALTTIME of the transmission queue itself are changed.... thanks  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 05, 2004 3:49 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I guess it really may depend on what status the channel was in before.
I noticed that for a stopped channel the queue is changed to NOTRIGGER.
So when you restart that channel you are actually altering the xmitq to set TRIGGER.
At the same time you change as well the getinhibit argument.
Maybe this gives an indication.
Now does it do that as well if the channel was simply inactive ?
 |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Jul 06, 2004 6:29 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
my original guess was right, only didn't notice a difference as all channels were inactive... thanks for the hint...
further investigation shows:
(when a transmission queue is set to use triggering)
When the channel is triggered the GET goes to DISABLED and triggering to NOTRIGGER as long as the channel runs.
When the channel goes to inactive it goes back to GET ENABLED and triggering to TRIGGER
When the channel is stopped GET and triggering remain at DISABLED and NOTRIGGER _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jul 06, 2004 10:11 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Quote: |
When the channel is triggered the GET goes to DISABLED and triggering to NOTRIGGER as long as the channel runs.
|
If the XMIT queue became GET disabled when the channel started, how could the SNDR MCA pull a message out of the XMIT queue? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Jul 06, 2004 12:04 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
PeterPotkay wrote: |
If the XMIT queue became GET disabled when the channel started, how could the SNDR MCA pull a message out of the XMIT queue? |
Interesting! my guess is the MCA does not use normal MQ API calls and also this prevents something else getting messages instead of the MCA.
I could not have switched the PUT and GET around as that would 'disable' the transmission queue when the channel is running ...
I was not looking for this 'behaviour' I just stumbled onto it as I was investigating something else... curious as I am, I always want to know the famous details...
If anyone has any more insights they are more then welcome to share _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 06, 2004 2:18 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Michael
in Unix (AIX -- MQ 5.3 CSD06)
channel running but queue depth (0)
Code: |
DESCR(WebSphere MQ Default Local Queue)
PROCESS( ) BOQNAME( )
INITQ(SYSTEM.CHANNEL.INITQ) TRIGDATA( )
CLUSTER( ) CLUSNL( )
QUEUE(TO.CMSP) CRDATE(2004-06-01)
CRTIME(18.16.17) ALTDATE(2004-07-06)
ALTTIME(08.09.50) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
DEFPSIST(YES) MAXDEPTH(5000)
MAXMSGL(4194304) BOTHRESH(0)
SHARE DEFSOPT(SHARED)
HARDENBO MSGDLVSQ(PRIORITY)
RETINTVL(999999999) USAGE(XMITQ)
TRIGGER TRIGTYPE(FIRST)
TRIGDPTH(1) TRIGMPRI(0)
QDEPTHHI(80) QDEPTHLO(20)
QDPMAXEV(ENABLED) QDPHIEV(DISABLED)
QDPLOEV(DISABLED) QSVCINT(999999999)
QSVCIEV(NONE) DISTL(YES)
NPMCLASS(NORMAL) DEFTYPE(PREDEFINED)
TYPE(QLOCAL) SCOPE(QMGR)
DEFBIND(OPEN) IPPROCS(1)
OPPROCS(1) CURDEPTH(0) |
I do not think I ever saw a get(disabled) while the channel was running...
F.J.  |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jul 06, 2004 4:51 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Quote: |
my guess is the MCA does not use normal MQ API calls
|
The MCAs are nothing more than well written regular old fashioned programs that use the MQ API. Paul Clarke, the IBMer who wrote the code, likes to say they were the first MQ programs written. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Jul 07, 2004 1:19 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Sorry... GET is only DISABLED when the channel is in STOPPED state ...  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
|