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 » WebSphere Message Broker (ACE) Support » read propertyfile

Post new topic  Reply to topic
 read propertyfile « View previous topic :: View next topic » 
Author Message
WMBSAM
PostPosted: Sun Apr 11, 2010 8:38 pm    Post subject: read propertyfile Reply with quote

Voyager

Joined: 02 Oct 2009
Posts: 90
Location: Atlanta

my question is reference to the below topic:

http://www.mqseries.net/phpBB2/viewtopic.php?t=49818&sid=80354bc204305ca2638eb406842613ab

we have a requirement where we have to build only one barfile and then it has to be used for different environments (DEV,QA,PROD) progressively .


So to acheive this i have defined a property file for each environment and then using the MqsiOverridecommand i am changing the required configurable properties (REF:
http://www.ibm.com/developerworks/websphere/library/techarticles/0706_spriet/0706_spriet.html)

Note: to change the properties(Such as URLS) of the barfile i have defined the UDP's and also promoted required node level configurable properties to the message flow .

So my questions is this a good approach to deal with such situation or is ther any other solution which could be better?

Back to top
View user's profile Send private message
mqmatt
PostPosted: Mon Apr 12, 2010 2:07 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

Note that the mqsiapplybaroverride command changed quite a lot in V6.1; there are now more options for specifying overrides. For example, you can specify sets of <propertyname=propertyvalue> and <oldvalue=newvalue> overrides, using either a properties file or manually on the commandline. You can also now insert and replace a whole new deployment descriptor in a BAR file.

If you're on V6.1 or V7, one of the newer options might be more appropriate for you, depending on how your change management and build systems are set up.
If you're still on V6.0, then bear the new options in mind for when you migrate.
Back to top
View user's profile Send private message
hallmark
PostPosted: Tue Apr 13, 2010 6:14 am    Post subject: Reply with quote

Voyager

Joined: 10 Mar 2005
Posts: 76

Quote:
we have a requirement where we have to build only one barfile and then it has to be used for different environments (DEV,QA,PROD) progressively .


Excellent requirement and main reason why bar overrides are there.

Quote:

So my questions is this a good approach to deal with such situation or is ther any other solution which could be better?


We have a similar solution and we have a property file of the overrides for each bar file at each environment level. This tends to get quite cumbersome. I have tried various methods to minimise the amount of abstract source code to represent an environment's overrides...

1. Have a set of environment variables on each of the target hosts that the deployment scripts can source and generate a specific override file within the deployment script from these environment variables plus the parameterised override file in the deployment package...

2. A single source controlled file with all barfile overrides contained therein and then again logic in the deployment script to generate a specific override file and apply it

But my biggest recommendation is to try as hard as possible to mimimise the differences between environments. There is a tendancy because of the flexibility of bar overrides and scripting ability to allow its use to proliferate and you end up with overrides for nearly everything from datasources to logfile locations. The more there are the more likely an inappropriate override can be applied.

Your admin team has to know what each is for and whether it is appropriate for each environment, since your code is packaged from DEV and promoted it can be quite easy for an override to slip through (e.g suddently running multiple instances in UAT without any warning or any review as to whether it was warranted, acceptable etc...). I'm not saying it can't be done and controlled, its just more of an overhead the more its used and without thought can have unintended consequences.
_________________
Rob
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 » WebSphere Message Broker (ACE) Support » read propertyfile
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.