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 Discussion » MQSI v2.1 question - queue design

Post new topic  Reply to topic
 MQSI v2.1 question - queue design « View previous topic :: View next topic » 
Author Message
JoePanjang
PostPosted: Wed Jul 10, 2002 5:44 pm    Post subject: MQSI v2.1 question - queue design Reply with quote

Voyager

Joined: 10 Jul 2002
Posts: 88
Location: Dengkil MALAYSIA

Hi,

I'm still new to mqsi and hopefully could get some feedback from you all on this question.

I have a request coming from box A and thru the broker(mqsi), it should pass the message to box B which will manipulate the message and reply back to box A via broker. I have design my queues to be something like this:-

(1) from box A
put a message into an aliasq which is point to a remoteq at the broker.

(2) from a broker
read a message from box A(localq) and put into an aliasq which is point to a remoteq at the box B.

(3)from box B
read a message from a localq and start the processing.
reply back the message and put into the aliasq which is pointing to the remoteq at the broker

(4)from a broker
read a reply message(localq) and put into an aliasq which is pointing to a remoteq in box a

(5)from box a
read a reply message from a localq and update a local appl.

Is that a good design for the request-response processing method? how can i make use the qmgr alias in this kind situation?

thanks in advance.

Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jul 10, 2002 6:40 pm    Post subject: Reply with quote

Jedi Knight

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

Before answering I would like to confirm this ..
Do you have broker running on separate machine (Box C)?
_________________
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
JoePanjang
PostPosted: Wed Jul 10, 2002 8:32 pm    Post subject: Reply with quote

Voyager

Joined: 10 Jul 2002
Posts: 88
Location: Dengkil MALAYSIA

Yes. The broker is running on MVS. Box A is AIX and B is AS400.

TQ
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jul 10, 2002 9:26 pm    Post subject: Reply with quote

Jedi Knight

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

If you are using Broker to do some kind of processing like, data conversion, etc., then this is the way I would prefer to go. If your Message flow is just doing MQGET and MQPUT for request and reply messages then there are other options to consider. I can think of following right now,

option 1
Application on box A makes a client connection to queue manager on Box B (AS400) to put & get messages.

Option 2
There are two remote queue definitions on box C (MVS) queue manager, one pointing to Box A (Reply Q) and another pointing to Box B (Request Q). Messages will just bypass from MVS queue manager.

Option 3
Create qmgr alias for AS400 queue manager on Box A and have 2 channels (sender and receiver) defined between Box A to C and C to B. Please refer to MQseries Intercommunication book, Chapter 3 for more information on how to define queue manager alias.

Hope this helps!
_________________
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
JoePanjang
PostPosted: Tue Jul 16, 2002 10:12 pm    Post subject: Reply with quote

Voyager

Joined: 10 Jul 2002
Posts: 88
Location: Dengkil MALAYSIA

Hi Kiran,

Basically the broker will do the message conversion and routing. If the request if coming from box A and i specify the reply to q in the mqmd (with qmgr alias definition), how does box B knows where to reply as the box A message is coming thru the broker and box B need to reply back to box A via the broker. Is the broker the one need to know where to reply back to or box B? If the broker the one need to know, where does it store the replytoq value?

Appologize for asking in details.

Thanks again.
Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Sun Jul 21, 2002 11:41 pm    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2001
Posts: 103
Location: IBM IT Education Services, Germany

If request and reply goes through the broker, then you must store the original ReplyToQ somewhere, for example in a database or in another field of the message. There is no way to share data between flows. Example:

REQUEST_FLOW:
-- set ReplyToQ to inputQ for REPLY_FLOW
SET OutputRoot.MQMD.ReplyToQ = 'Reply_IN';
-- store original ReplyToQ
SET OutputRoot.MQMD.ApplIdentityData= InputRoot.MQMD.ReplyToQ;

REPLY_FLOW:
-- restore original ReplyToQ
SET OutputRoot.MQMD.ReplyToQ = InputRoot.MQMD.ApplIdentityData;

Of course, you must make sure that Application B does not change MQMD.ApplIdentityData.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQSI v2.1 question - queue design
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.