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 IBM MQ Support » Queue Manager alias confusion

Post new topic  Reply to topic
 Queue Manager alias confusion « View previous topic :: View next topic » 
Author Message
BretHillier
PostPosted: Sun Jun 10, 2012 9:06 pm    Post subject: Queue Manager alias confusion Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Sun Jun 10, 2012 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 11, 2012 1:32 am    Post subject: Reply with quote

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.
  1. A name used in a CCDT to refer to the clntconns that point to one or more qmgrs
  2. 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
View user's profile Send private message
bruce2359
PostPosted: Mon Jun 11, 2012 5:41 am    Post subject: Reply with quote

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
View user's profile Send private message
BretHillier
PostPosted: Mon Jun 11, 2012 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Mon Jun 11, 2012 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Mon Jun 11, 2012 6:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
BretHillier
PostPosted: Mon Jun 11, 2012 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
BretHillier
PostPosted: Mon Jun 11, 2012 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 11, 2012 8:21 pm    Post subject: Reply with quote

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
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 IBM MQ Support » Queue Manager alias confusion
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.