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 » Clustering » Qmgr Alias

Post new topic  Reply to topic
 Qmgr Alias « View previous topic :: View next topic » 
Author Message
dzifchock
PostPosted: Wed Nov 18, 2009 10:15 am    Post subject: Qmgr Alias Reply with quote

Apprentice

Joined: 21 Feb 2007
Posts: 41

Here is the scenario:

MQ v6.0.2.6

There is an application that lives on 2 different servers. Each server has a qmgr named a.q.mgr , the queue manager name is the same on both servers. This application can only specify one queue manager name in its configuration, hence both queue managers having the same name. One queue manager belongs to a cluster , the other is stand alone . It would be nice if both queue managers can join the cluster for ease of administration and benefits of clustering .

Is it possible to change the qmgr name on one of the queue managers, create a Qmgr Alias to trick the application in thinking it is still writing to a.q.mgr, and join the qmgr to the cluster ?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Nov 18, 2009 10:19 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

No. QM Aliases do not get referenced for MQCONN(X) calls.

If the application can connect in MQ Client mode, even if its running on the same same server, then your problems are solved. MQ Clients do not need to specify any QM name - hostname, channel name and port # are enough.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Nov 18, 2009 11:21 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Or if you have to connect in bindings mode, you can make a.q.mgr the default Queue Manager on each server, and then the app can specify blanks for the QM name on the MQCONN call, even in bindings mode.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 18, 2009 1:10 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
Each server has a qmgr named a.q.mgr

It is not a best-practice to create multiple qmgrs with the same name.
_________________
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
Vitor
PostPosted: Wed Nov 18, 2009 1:52 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
Quote:
Each server has a qmgr named a.q.mgr

It is not a best-practice to create multiple qmgrs with the same name.


Especially as you can't (as you intimate in your original post) "rename" a queue manager & 2 queue managers with the same name in a cluster is disaster.

(For the purists - yes, I know you can sort of rename a queue manager but there's not a "rename" command)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 18, 2009 7:14 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The best you can do is recreate the qmgr with a different name.
You can then create a qmgr alias in that qmgr that allows it to process messages originally received for the other qmgr. (See MQ routing and qmgr alias in the intercommunications manual)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Wed Nov 18, 2009 7:33 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
Is it possible to change the qmgr name on one of the queue managers, create a Qmgr Alias to trick the application in thinking it is still writing to a.q.mgr, and join the qmgr to the cluster ?

What you should be asking is: can I run an app on qmgr1 that successfully puts a message on a queue on qmgr2?

The answer is YES. This is basic qmgr-to-qmgr distributed queuing. This requires (on the qmgr where the app executes) a QRemote definition, a transmission queue, and a sender channel. The receiving qmgr requires: a receiver channel, a listener, the destination QLocal definition.

No tricking the qmgr is necessary. Again, this is very basic MQ stuff.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » Qmgr Alias
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.