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 » WebSphere Message Broker (ACE) Support » How to put the same message in two queues of same QM?

Post new topic  Reply to topic
 How to put the same message in two queues of same QM? « View previous topic :: View next topic » 
Author Message
next
PostPosted: Thu Apr 07, 2011 3:25 am    Post subject: How to put the same message in two queues of same QM? Reply with quote

Voyager

Joined: 02 May 2010
Posts: 75

Hi

Is there a way to put the same message in two queues of the same QM?

The message is coming from a third party using a remote queue and already a flow is consuming the message. The requirement is that another flow has to process the same message.

Please let me know if there are any ideas.
Back to top
View user's profile Send private message
santnmq
PostPosted: Thu Apr 07, 2011 3:35 am    Post subject: Reply with quote

Centurion

Joined: 11 Jan 2011
Posts: 125

you can write another intermediate flow to make two copies of the same message before it is processed..
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Apr 07, 2011 3:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Or wire two MQOutput nodes.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Thu Apr 07, 2011 3:42 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Or use a topic alias and two administrative durable subscritions.
Back to top
View user's profile Send private message
next
PostPosted: Thu Apr 07, 2011 3:48 am    Post subject: Reply with quote

Voyager

Joined: 02 May 2010
Posts: 75

We dont want to change the existing flow. Can we handle this in MQ itself?

@zpat ..Could you please elaborate on the subscription solution?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Apr 07, 2011 4:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

you would need to change the queue that the existing flow is reading.

Change it's name, then create the same named object but as a TOPIC instead of a QUEUE.

Then create two SUBS that each point to two new QUEUES. Then put the flows listening to this queue.

Or, again, put a different flow listening to the current queue, and have it duplicate the message to two new queues.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Apr 07, 2011 4:09 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Ensure the PSMODE enabled (only need do this once).

ALTER QMGR PSMODE(ENABLED)

Define topic object with fixed topic string (of your choice)

DEFINE TOPIC(TEST.DUP) TOPICSTR('/MQ/DUPLICATE/TEST.QUEUE1')) DURSUB(YES) REPLACE

Define topic alias queue using topic object

DEFINE QALIAS(TEST.ALIAS) DEFPSIST(YES) TARGTYPE(TOPIC) TARGET(TEST.DUP) REPLACE

Define local queues to receive the messages (they could also be remote queues as needed)

DEFINE QLOCAL(TEST.QUEUE1) DEFPSIST(YES) REPLACE
DEFINE QLOCAL(TEST.QUEUE2) DEFPSIST(YES) REPLACE

Define admin durable subscriptions

DELETE SUB(TEST.SUB1)
DEFINE SUB(TEST.SUB1) DEST(TEST.QUEUE1) TOPICOBJ(TEST.DUP) PSPROP(NONE)

DELETE SUB(TEST.SUB2)
DEFINE SUB(TEST.SUB2) DEST(TEST.QUEUE2) TOPICOBJ(TEST.DUP) PSPROP(NONE)

Now - just put a message to TEST.ALIAS and it should appear on both local queues.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 07, 2011 5:23 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

These MQ suggestions assume the version is MQ 7. They are not possible in MQ 6.
_________________
Peter Potkay
Keep Calm and MQ On
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 » WebSphere Message Broker (ACE) Support » How to put the same message in two queues of same QM?
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.