As long as PROS.AVS.REMOTE and PROS.TYPEB.REMOTE both name transmission queue PROS.TYPEB.OUT, it should work. But, you may want to give your transmission queue a name that relates to your remote queue manager (e.g. VAYANT01, assuming your sender channel naming convention is localQMgrName.remoteQMgrName).
Regards .. Mayur
Original Message:
Sent: Fri February 03, 2023 09:09 AM
From: Emanuel Gonzalez
Subject: Multiples Transmission queue in One Channel
Hello all, thanks for the reply.
I have two local queue PROS.AVS.OUT and PROS.TYPEB.OUT, each one with your remote queue.
In the queue manager i create an channel, the local queue send different message (typeb / ssm).
My idea is use only one channel to route the message to de remote consumer.
Sorry for my english, i still learning.
------------------------------
Emanuel Gonzalez
Original Message:
Sent: Fri February 03, 2023 09:01 AM
From: Mayur RAJA
Subject: Multiples Transmission queue in One Channel
Hi Emanuel/Morag,
Is it that Emanuel maybe wants to share the one channel to route messages to different queues ?
Essentially, your application can either put to an Alias queue that names a remote queue as it's base queue, or you can put directly to a remote queue. In both cases, the message will end up on the transmission queue named in the remote queue. So, you can either define multiple alias queues that name the same remote queue as their base, or you can define multiple remote queues that all name the same transmission queue.
E.g., on QM1 you could define alias, remote and transmission queues:
AQ1 -> RQ1 (RNAME=LQ1, RQMNAME=QM2, XMITQ=QM2)
AQ2 -> RQ1 (RNAME=LQ1, RQMNAME=QM2, XMITQ=QM2)
AQ3 -> RQ1 (RNAME=LQ1, RQMNAME=QM2, XMITQ=QM2)
But, with this approach, the same target remote queue name of LQ1 is used. If you want messages to be put to different target remote queues, on QM1, you need to define multiple remote queues that have different values set in their RNAME fields:
RQ1 (RNAME=LQ1, RQMNAME=QM2, XMITQ=QM2)
RQ2 (RNAME=LQ2, RQMNAME=QM2, XMITQ=QM2)
RQ3 (RNAME=LQ2, RQMNAME=QM2, XMITQ=QM2)
Of course if you want to use Alias queues in this case, then you could easily define AQ1 -> RQ1, AQ2 -> RQ2, and AQ3 -> RQ3.
Note: If you do not set XMITQ in the remote queue definition, we look for an XMITQ with the same name as the target QMgr specified in the RQMNAME field, which is QM2.
On QM2, you would define the local queue(s)
Messages put to AQ1, AQ2, AQ3, RQ1 or RQ2 all end up on XQ which is served by your sender channel.The sender channel sends to the receiver channel which will put the messages either to LQ1 only, or to LQ1, LQ2 and LQ3.
Regards .. Mayur
------------------------------
Mayur RAJA
Original Message:
Sent: Fri February 03, 2023 03:33 AM
From: Morag Hughson
Subject: Multiples Transmission queue in One Channel
Hi Emanuel,
It is not possible to set more than one transmission queue per channel.
Could you tell us more about what led you to want to do this. There may be an alternative solution, but since we don't know the problem you are trying to solve, we can't yet advise you further.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Thu February 02, 2023 09:36 AM
From: Emanuel Gonzalez
Subject: Multiples Transmission queue in One Channel
Hi MQ experts, Is it possible to use the same channel for multiple queues?
I have this channel:
It is possible to set more than one queue in the field "Transmission queue:"??
Regards,
------------------------------
Emanuel Gonzalez
------------------------------