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 » Can two Qmgrs have same QMID?

Post new topic  Reply to topic Goto page Previous  1, 2
 Can two Qmgrs have same QMID? « View previous topic :: View next topic » 
Author Message
bruce2359
PostPosted: Mon Jul 28, 2008 7:02 am    Post subject: Reply with quote

Poobah

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

Quote:
...industry best practice is to always use unique queue manager names. Its common to include the environment type and a sequence number in the name, eg. BOBTEST1, BOBQA1, BOBPROD1.

Of course; but it's just a best practice, not carved in stone. One view of application promotion is to make it transparent to both the application programmer (not changing MQCONN qmgrname), AND the sysadmin. But it's a choice.

Quote:
Applications should obtain qmgr name and queue names from configuration info somewhere (file, registry, factory etc), so that promotion of app programs from one environment to another will work transparently.

But if you (or your client) can't or don't want to, then what?

Quote:
Your reasoning does not hold any water.

Hmmm.

Quote:
The MQ object definition files that are promoted from one environment to the next should only contain queue objects. There should be no channel objects, as the connames will be different in each environment (unless you have also made the mistake of using the same host names for dev, qa & prod!)

As with most technical things, this takes understanding the product, the environment, and planning. These were apparently missing here.
_________________
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
sami.stormrage
PostPosted: Mon Jul 28, 2008 1:32 pm    Post subject: Reply with quote

Disciple

Joined: 25 Jun 2008
Posts: 186
Location: Bangalore/Singapore

Quote:
Of course; but it's just a best practice, not carved in stone. One view of application promotion is to make it transparent to both the application programmer (not changing MQCONN qmgrname), AND the sysadmin. But it's a choice.


Offcourse they are like carvings on a Stone, U would be doomed one day and find that it was the mistake of not following the Best practises that were recommended.
One instance is I could remember is that an app team used the same Q for TEST, QA and Prod aswell. So if u do not keep ur environments seperate. One new comer might test an app to credit some money to an accont and it may one day be found that someone changed the seetings to PROD and the that money has be dubiously credited to some account.. This was a real thing that happend in Amex environment!
_________________
*forgetting everything *
Back to top
View user's profile Send private message Yahoo Messenger
kevinf2349
PostPosted: Mon Jul 28, 2008 5:49 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

...then they need to fire their security personel!

SOX wil eat them alive for allowing developers access to a production environment.

We use the same queue names, but the queue manager names are passed as parameters or config files.

Only users are allowed access to Production, queue managers and queues.

Then you have made your SOX auditors happy, and kept your CIO from a prison cell....oh, one side effect of same queue name? No code changes between all environments
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 28, 2008 7:49 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

kevinf2349 wrote:
...oh, one side effect of same queue name? No code changes between all environments


MQ object names (queues, channels, queue managers) should NEVER be put in code. They should always be passed as parameters to the code, from a config file, command line, environment variables, etc.

Queue names should be different for dev, test, prod environments, to mitigate the possibility of accidentally connecting apps to the wrong environment, or accidentally connecting MQ clusters across environments. The difference in name need only be subtle. eg. BOB.DEV.ORDERS.INPUT, BOB.PRD.ORDERS.INPUT.

Quote:
But if you (or your client) can't or don't want to, then what?


They you have to make the best of the bad situation and be extremely careful what you do with each environment. I would start making medium to long term plans to change the setup, even if it takes years.
_________________
Glenn
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 28, 2008 11:22 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

FWIW, IBM Developerworks has some MQ best practices:
http://www.ibm.com/developerworks/websphere/library/techarticles/0807_hsieh/0807_hsieh.html?S_TACT=105AGX54&S_CMP=B0724&ca=dnw-929

The top 15 WebSphere MQ best practices
including such gems as
"Queue manager names should be unique in the MQ network and reflect the location, function, and environment of the queue manager (dev, test, etc.). "
and
"Avoiding the use of hard-coded MQ objects and location-names in your applications will provide for significant architectural flexibility, portability, and deployment flexibility."
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Clustering » Can two Qmgrs have same QMID?
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.