|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is "ALTER QLOCAL(TRXQ) TRIGDATA(SDRCHNL)" necessar |
« View previous topic :: View next topic » |
Author |
Message
|
EricL |
Posted: Tue Mar 28, 2023 3:25 pm Post subject: Is "ALTER QLOCAL(TRXQ) TRIGDATA(SDRCHNL)" necessar |
|
|
Centurion
Joined: 10 Oct 2014 Posts: 102
|
Hi,
I'm a bit confused of using TRIGDATA parameter in sender channel creation.
1. I have a sender channel created with a transmission q:
DEFINE CHANNEL(SAMPLE.SENDER) CHLTYPE(SDR) TRPTYPE(TCP) CONNAME('A.B.C.D(1414)') XMITQ(SENDER.TRXQ)
DEFINE QLOCAL(SENDER.TRXQ) USAGE(XMITQ) INITQ(SYSTEM.CHANNEL.INITQ)
it is working fine as expected.
2. I noticed some sender channels created previously as:
DEFINE CHANNEL(SAMPLE.SENDER) CHLTYPE(SDR) TRPTYPE(TCP) CONNAME('A.B.C.D(1414)') XMITQ(SENDER.TRXQ)
DEFINE QLOCAL(SENDER.TRXQ) USAGE(XMITQ) INITQ(SYSTEM.CHANNEL.INITQ)
ALTER QLOCAL(SENDER.TRXQ) TRIGDATA(SAMPLE.SENDER)
My question is: Is "ALTER QLOCAL(SENDER.TRXQ) TRIGDATA(SAMPLE.SENDER)" necessary?
Thanks |
|
Back to top |
|
 |
hughson |
Posted: Tue Mar 28, 2023 6:46 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
On the Distributed platforms, if you omit to say what channel should be trigger started when a message arrives on the transmission queue, then MQ will look at all the channel definitions and use the first one it finds defined to use that transmission queue.
On z/OS platforms, this feature is not available and so you must name the channel in the TRIGDATA attribute.
You can read more about this here.
Once upon a time a long time ago, you probably needed to say which channel it was on Distributed too, but that feature has been there for a long while now. It is worth saying that it does make for good administrative documentation if you want a specific channel to read from the transmission queue at trigger time, so no harm in it, and slightly quicker to get the channel started up if MQ doesn't have to figure out the name every time too. So pros and cons.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
EricL |
Posted: Tue May 09, 2023 4:51 pm Post subject: |
|
|
Centurion
Joined: 10 Oct 2014 Posts: 102
|
Hmmm, I now have a much better understanding of using "ALTER QLOCAL(TRXQ) TRIGDATA(SDRCHNL)".
As said, since it does add value in good administration documentation and start channel quicker, personally I'll prefer to use it.
Thanks you so much Morag, I knew your name long time ago, I'm so glad I can communicate with you directly.
Thanks
Eric |
|
Back to top |
|
 |
hughson |
Posted: Tue May 09, 2023 7:02 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
EricL wrote: |
Thanks you so much Morag, I knew your name long time ago, I'm so glad I can communicate with you directly. |
Hi Eric,
Happy to make contact again. You'll find me lurking wherever people are asking questions about MQ.
All the best.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 10, 2023 12:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
EricL wrote: |
Hmmm, I now have a much better understanding of using "ALTER QLOCAL(TRXQ) TRIGDATA(SDRCHNL)".
As said, since it does add value in good administration documentation and start channel quicker, personally I'll prefer to use it.
Thanks you so much Morag, I knew your name long time ago, I'm so glad I can communicate with you directly.
Thanks
Eric |
Be sure you document the reason why in the queue description. In distributed, seeing that the TRIGDATA has been set, may also be an indication that the XMITQ has been defined on more than one channel, and that you are choosing which of the channels to consume the XMITQ...  _________________ MQ & Broker admin |
|
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
|
|
|
|