Author |
Message
|
BretHillier |
Posted: Sun Jun 10, 2012 9:06 pm Post subject: Queue Manager alias confusion |
|
|
Novice
Joined: 23 May 2012 Posts: 18
|
Hi everyone,
I've read past posts, and the documentation - still confused. Admittedly I've spent about 8hours trying to figure it out - and before I put my nose back to the grindstone I have a question:
Is it possible to test out the whole Queue Manager Alias area, using nothing but locally installed QM's and amqsput command?
Bret. |
|
Back to top |
|
 |
exerk |
Posted: Sun Jun 10, 2012 11:55 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Yes. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 11, 2012 1:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can test any configuration of MQ on a single machine. The thing to remember is that the only things that cares or knows where a specific queue manager lives are channel definitions.
A qmgr alias is one of two things. - A name used in a CCDT to refer to the clntconns that point to one or more qmgrs
- A qremote that has no RQNAME, but merely an RQMNAME or XMITQ
In other words, it's a name that is used to point to a queue manager. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jun 11, 2012 5:41 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Similar to a queue alias, a queue-manager alias object definition is used to resolve a queue-manager name. And like a queue alias, this is done at MQOPEN for a queue-manager name.
Use of a queue-manager alias is discussed in the WMQ Intercommunications manual. From this, you can gather that its use is primarily in distributed queuing. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
BretHillier |
Posted: Mon Jun 11, 2012 2:54 pm Post subject: |
|
|
Novice
Joined: 23 May 2012 Posts: 18
|
Thanks guys. I've kept at it - and 'maybe' getting somewhere. If I'm on the wrong track please kick me in the pants and direct me in the right direction.
I have two QM's
ABC
define qremote(MY_QUEUE) rname(MY_QUEUE) rqmname(AUCKLAND)
define qlocal(AUCKLAND) usage(XMITQ)
define channel(ABC.OTHERQM) chltype(SDR) conname('127.0.0.1(1415)') XMITQ(AUCKLAND)
OTHERQM
define qlocal(MY_QUEUE)
define qremote(AUCKLAND) rqmname(OTHERQM)
define channel(ABC.OTHERQM) chltype(RCVR)
amsqput MY_QUEUE ABC
A message arrives from MY_QUEUE on ABC Queue Manager, onto MY_QUEUE on OTHERQM.
Is this a good example of a QM Alias in action? My MY_QUEUE queue has specified AUCKLAND as the remote QMGR, rather than OTHERQM. |
|
Back to top |
|
 |
mvic |
Posted: Mon Jun 11, 2012 6:15 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
BretHillier wrote: |
Is this a good example of a QM Alias in action? |
No, I believe not. Use the MQ Information Center (or Google) and search for: queue manager alias
Note that the way you specify a queue manager alias (as defined in the MQ Information Center) looks different from what you have done.
Why do you need or want to use a queue manager alias? It might or might not be a good idea (you will have to decide that, but maybe we can offer some insight if you share a bit about your requirements?) |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jun 11, 2012 6:49 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Wel... The purpose of a qmgr-alias is to resolve a qmgr name.
So, if a MSG arrives on a qmgr with an incorrect qmgr name in the xqh, then a qmgr-alias will resolve it the qmgr where it arrived.
A qmgr-alias can also be used to move a message to an Xmitq to move (reroute) it further down the network. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
BretHillier |
Posted: Mon Jun 11, 2012 6:52 pm Post subject: |
|
|
Novice
Joined: 23 May 2012 Posts: 18
|
Thanks for your rely. I am studying for my MQ v7 certification exam. I realise it is an advanced topic, so don't expect to fully understand it to the level of most on here. But I was hoping to at least be able to configure a VERY basic example on my own PC.
I have searched and read google and IBM documentaton a lot but to no avail as yet. I have yet to find instructions (beginning to end) on how to set up a very simple QM alias example. I guess there are two ways to approach this:
1. Read the documentation until I understand it, then implement an example of a QM alias on my own PC to confirm.
2. Review an example of a QM alias on my own PC, then match that 'visual' aid with the theoretical side on IBM documentation.
I tried option 1, but at this stage I sort of was hoping to go for option 2 as option 1 was confusing me more than I thought. |
|
Back to top |
|
 |
BretHillier |
Posted: Mon Jun 11, 2012 7:36 pm Post subject: |
|
|
Novice
Joined: 23 May 2012 Posts: 18
|
I have a feeling that the fact that amqsput is 'Connecting' to a queue and QM (with the queue having to be local) is the source of my problem.
In the documentation here: http://www.mqseries.net/manuals/intercommunication/csqzae060q.htm#FIGMSG6B
I see a statement such as "MQOPEN call specifies a queue name of THISQ and a queue manager name of YOURQM".
How is this possible using amqsput considering THISQ has to actually exist on the local QM for amqsput to connect? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 11, 2012 8:21 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you have one correct implementation of an qmgr alias in your example.
Now look at QMGR ABC and change following:
Make the XMITQ name be OTHERQM.
Find out how you can still route to OTHERQM putting the message to qmgr AUCKLAND, and what you need to do to still force the usage of the qmgr alias on OTHERQM...
intercommunications manual
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|