Author |
Message
|
deepak_paul |
Posted: Mon May 16, 2011 8:44 am Post subject: Copy MQ messages to other Queues |
|
|
Centurion
Joined: 04 Oct 2008 Posts: 147 Location: US
|
All,
We have a requirement that we need to send copy of the message to Queue B whenever Queue A gets a message.
We already had a Message flow in Production() which was configured with Queue A as Input. Since this is a recommended temporary requirement, changing the existing Message flow in production is not highly recommended. Few options are,
1. Change the existing flow by adding Propagate or Flow order node in order to send a copy to Queue B.
2. Change the queue name in the existing flow with Queue C and Create another Message flow with Queue C and use Propagate or Flow order node to Queue B.
3. Not sure If we can do anything on the MQ side like defining Distribution List or Alias Queue to address this.
We would like to know which would be the best option with minimal changes on the existing system and with minimal cost involved.
Environment:
Message Broker: Z/Linux Message Broker 7.0
Message Queue: Z/Linux Message Queue 7.0
Thanks
Paul |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon May 16, 2011 8:49 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
A more simple solution:
Override the bar file to point input queue from queue A to queue B. Create a simple flow, MQInput (Queue A) -> two MQOutputs (Queue B & C). _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
deepak_paul |
Posted: Mon May 16, 2011 1:21 pm Post subject: |
|
|
Centurion
Joined: 04 Oct 2008 Posts: 147 Location: US
|
Thanks for the reply.
Any other options we can think of from MQ standpoint?
Does anybody know if Z/Linux Queue Manager supports MQ Distribution List? _________________ Regards
Paul |
|
Back to top |
|
 |
mqjeff |
Posted: Mon May 16, 2011 3:04 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
deepak_paul wrote: |
Thanks for the reply.
Any other options we can think of from MQ standpoint?
Does anybody know if Z/Linux Queue Manager supports MQ Distribution List? |
An MQ Distribution List is an APPLICATION LEVEL OBJECT. IT IS NOT A QUEUE MANAGER OBJECT ON ANY PLATFORM.
Yes, distribution lists are supported on zLinux. You MUST MAKE APPLICATION CHANGES to use them. |
|
Back to top |
|
 |
Esa |
Posted: Tue May 17, 2011 3:26 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
deepak_paul wrote: |
Thanks for the reply.
Any other options we can think of from MQ standpoint?
|
If you are using MQ7, you can change the sending application to put messages into an alias instead of a queue. Or if the application is putting messages to a remote queue, you can change the remote queue to point to an alias.
Then make a topic, change the alias to point to that topic and create two subsciptions.
If you need to preserve MQMD context fields, you will have to set up access control carefully so that the user id's that publish and subscibe have permission to pass context. Otherwise those fields get modified or dropped from the message headers. |
|
Back to top |
|
 |
|