ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » How can I copy messages between queues?

Post new topic  Reply to topic
 How can I copy messages between queues? « View previous topic :: View next topic » 
Author Message
leo_grv
PostPosted: Thu Aug 20, 2009 2:49 pm    Post subject: How can I copy messages between queues? Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Aug 20, 2009 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
hopsala
PostPosted: Fri Aug 21, 2009 12:28 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

You should really ask yourself if you need this functionality at all and why. I have rarely come across a situation in which duplicating messages was justified. Tell us your business requirements and we might be able to save you some work.

In addition to what gbaddeley proposed, you can use api exists or log extraction. See:
http://www.mqseries.net/phpBB2/viewtopic.php?t=18005
http://www.mqseries.net/phpBB2/viewtopic.php?t=12999
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Aug 21, 2009 1:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Cressida
PostPosted: Fri Aug 21, 2009 8:32 am    Post subject: Reply with quote

Disciple

Joined: 13 Jul 2007
Posts: 157

seems like many folks have not yet noticed ....

http://www.mqseries.net/phpBB2/viewtopic.php?t=50511

one of them does mirrorq like functions and lots more ....
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Aug 23, 2009 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ratan
PostPosted: Wed Aug 26, 2009 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Aug 26, 2009 4:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How can I copy messages between queues?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.