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 » Message Flow Routing

Post new topic  Reply to topic
 Message Flow Routing « View previous topic :: View next topic » 
Author Message
LearnMQSI
PostPosted: Tue Aug 20, 2002 8:06 pm    Post subject: Message Flow Routing Reply with quote

Centurion

Joined: 20 Aug 2002
Posts: 137

Hi MQSI Experts,

I'm brand new to MQSI. I have to create a msg. flow which will check the destination Q MGR, and route the msg.

When the msg. arrives, at Intermediate QMGR, it will check and select the appropriate destination QMGR and route the msg.(Destination QMGRs are 2, so it has to select the appropriate one out of this 2 qmgrs)

If somebody can drop a sample msg. flow similar to this will be appreciate or just have a thought on it, how it can be done will be great.

Thanx
Back to top
View user's profile Send private message
kirani
PostPosted: Tue Aug 20, 2002 8:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

If i understand your question correctly, you want to route a message to two different queues on two different queue managers after doing some checks?

Have a look at this thread:
http://www.mqseries.net/phpBB2/viewtopic.php?t=4700&highlight=queuename

Code:

IF ( condition1) THEN
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = 'Q1'
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueManagerName = 'QMgr1';
ELSE
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = 'Q2'
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueManagerName = 'QMgr2';
END IF;

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
LearnMQSI
PostPosted: Sun Aug 25, 2002 8:20 pm    Post subject: Route Msg Flow to 2 different queues on 2 diff. q mgrs Reply with quote

Centurion

Joined: 20 Aug 2002
Posts: 137

Kiran,

Thank you so much for your help. I appreciate your help. You are always there to help people. Once again thanx



kirani wrote:
If i understand your question correctly, you want to route a message to two different queues on two different queue managers after doing some checks?

Have a look at this thread:
http://www.mqseries.net/phpBB2/viewtopic.php?t=4700&highlight=queuename

Code:

IF ( condition1) THEN
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = 'Q1'
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueManagerName = 'QMgr1';
ELSE
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = 'Q2'
  SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueManagerName = 'QMgr2';
END IF;
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 » Message Flow Routing
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.