Author |
Message
|
leo_grv |
Posted: Thu Aug 20, 2009 2:49 pm Post subject: How can I copy messages between queues? |
|
|
 Newbie
Joined: 20 Mar 2009 Posts: 5
|
I want to copy a message between queues. But without suportpac´s only with the MQ.
For example, I want to send a message to a Qremote, but I want to send this message for the Qremote to a Qlocal and the QXMITQ.
Like this:
QREMOTE ------->Qlocal
|-------------->QXMITQ ------- > Other QMGR
I want backup the message to arrive in the QREMOTE in a QLOCAL and the same time send to QXMITQ.
That is possible? |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Aug 20, 2009 3:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
MQ point-to-point objects can't be configured to deliver one message to multiple destinations. However, it can be achieved by writing program code to use Distribution Lists or possibly Report options.
Maybe you should be looking at a Publish/Subscribe design? _________________ Glenn |
|
Back to top |
|
 |
hopsala |
Posted: Fri Aug 21, 2009 12:28 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 21, 2009 1:15 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
One common business reason for copying a message is for Archiving and/or Audit purposes.
Make a copy of the message before it is consumed and/or changed by some system so that when the Sh1t hits the fan and several million $$$ goes missing, the history of the message can be traced.
If you want to copy every message that arrives on a queue then there were at least two postings on this forum in the last month that discussed this and offered a solution to it. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Cressida |
Posted: Fri Aug 21, 2009 8:32 am Post subject: |
|
|
Disciple
Joined: 13 Jul 2007 Posts: 157
|
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Aug 23, 2009 3:50 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
smdavies99 wrote: |
One common business reason for copying a message is for Archiving and/or Audit purposes. |
True, but is MQ a really good solution for this? The message will have assured delivery but you still need write a consumer application, and what is that app going to do with it?
My feeling is that achiving and audit requirements should be met in the source application itself, using local logging to a text file or database. That way it doesn't rely on the MQ messaging infrastructure, and double the traffic ! _________________ Glenn |
|
Back to top |
|
 |
Ratan |
Posted: Wed Aug 26, 2009 1:29 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
you have to write an API exit for that functionality. You can use the mirrorq supportpac. _________________ -Ratan |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 26, 2009 4:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Ratan wrote: |
you have to write an API exit for that functionality |
Not in MQ v7. In MQ V7 you can natively and transparently use Pub/Sub for this.
And mirrorq is not and has never been a SupportPac, merely a sample. |
|
Back to top |
|
 |
|