Author |
Message
|
vanshul |
Posted: Sun Mar 07, 2010 11:40 pm Post subject: 2 Queue manegers with same name in a cluster |
|
|
Novice
Joined: 06 Jun 2008 Posts: 13
|
I was asked this quetion in interview yesterday.
Q1. Application accessing flow as exposed in message broker sets ReplyTo Queue in MQMD.
This replyToQ is present on two queue managers wuth same name which are a part of cluster.
So broker will reply to which queue manager?
Q2. When we wrire ESQL for sending a CWF message to a queue, we generally write the ESQL in same sequence as the fields that apprear on CWF message definiton file.
If we write the statements randomly(not in sequence apperaing in message def), what is the option in broker we need to set which automatically outputs the message in sequence.
Can you please help? |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Mar 08, 2010 12:22 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
what were your answers? _________________ 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 |
|
 |
vanshul |
Posted: Mon Mar 08, 2010 12:56 am Post subject: |
|
|
Novice
Joined: 06 Jun 2008 Posts: 13
|
I think there can not be 2 queue managers with same name in a cluster.
I wanst able to answer the second one. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Mar 08, 2010 1:53 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
Quote: |
This replyToQ is present on two queue managers wuth same name which are a part of cluster. |
this does not imply, that both queuemanagers have the same name. _________________ Regards, Butcher |
|
Back to top |
|
 |
Herbert |
Posted: Mon Mar 08, 2010 3:58 am Post subject: Re: 2 Queue manegers with same name in a cluster |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
vanshul wrote: |
When we wrire ESQL for sending a CWF message to a queue, we generally write the ESQL in same sequence as the fields that apprear on CWF message definiton file.
If we write the statements randomly(not in sequence apperaing in message def), what is the option in broker we need to set which automatically outputs the message in sequence. |
Interesting: I'm not aware of a option for controlling this, so I always build the message in exact the same sequence. Just wondering if this is a trick question or a lack in my knowledge. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 08, 2010 5:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
MRM-CWF can reorder elements in the tree as it outputs them. Only MRM-CWF. Not MRM-TDS or any other parser AFAIK.
This tends to be one of those things that gets asked on certification exams, so I'm not actually going to answer the question here. |
|
Back to top |
|
 |
vanshul |
Posted: Mon Mar 08, 2010 6:06 am Post subject: |
|
|
Novice
Joined: 06 Jun 2008 Posts: 13
|
MRM-CWF does not reorder the elements in sequence given in message definition file.
Its giving parsing error in case we drop this unordered message on MQOutput.Also the elements parsed correctely are having wrong values. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 08, 2010 6:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There are certain cases where MRM-CWF will use the order of the model to output elements, rather than using the ordre that elements exist in the tree.
Using a Sequence is not one of them. |
|
Back to top |
|
 |
|