Author |
Message
|
Jenney |
Posted: Thu May 10, 2007 6:44 am Post subject: PropertiesFile |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
Hi All,
I want to run mqsiapplybaroverride command to chage the configuration propeties of bar file. Can any buddy please guide me where to look for this file in the Toolkit file system.
Thanks
Jenney |
|
Back to top |
|
 |
Jenney |
Posted: Thu May 10, 2007 6:53 am Post subject: |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
Or if any buddy can provide the structure of the property file.
Thanks in advace.
Jenney |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 10, 2007 7:04 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
Jenney |
Posted: Thu May 10, 2007 8:27 am Post subject: |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
can you please give me the location of Broker.xml file.
Main thing i want to configure is the datasource name. I counldn't see that in the example.
Thanks
jenney |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 10, 2007 8:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
IF you use mqsiapplybaroverrides, you don't need to know about the location of Broker.xml.
You just need to set the DSN in your flow to something *unique* for each place you need to set it to something *different*, and then create a properties file that uses that unique NAME to assign a different VALUE.
So set your DSN to something like MYOVERRIDEDSN
and then create your properties file with MYOVERRIDEDSN=newdsnname
For reference, the broker.xml file is in the BAR file. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Jenney |
Posted: Fri May 11, 2007 7:13 am Post subject: |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
Thanks Jeff, that worked.
One more question, then how can i configure the Additional instaces value of the flow through this command. Hence the values are number and not unique.
Thanks
Jenney |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 11, 2007 7:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Jenney wrote: |
One more question, then how can i configure the Additional instaces value of the flow through this command. Hence the values are number and not unique. |
I don't have a good answer for this. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Jenney |
Posted: Fri May 11, 2007 7:25 am Post subject: |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
Does that means we should do it manually through Toolkit.
Does any buddy know how to change the Additional Instances of message flow in scripting or automation process.
Thanks
Jenney |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 7:30 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Jenney wrote: |
Does that means we should do it manually through Toolkit.
Does any buddy know how to change the Additional Instances of message flow in scripting or automation process.
Thanks
Jenney |
I'm not sure but I think that it can not be done.
I've tested it few a weeks ago. _________________ Marcin |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 7:44 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Ups, sorry,
It can be done.
1 set additional instances to unique value eg: 123
2. In property file place:
3. Execute mqsiapplybaroverride command:
4. Then in bar you will have additional instances set to 10
It is little risky (unique value ), but you can try. _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 11, 2007 7:52 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There are also other ways to change these properties in a scripted deployment scenario than mqsiapplybaroverrides. You can do stuff with ANT, for example, to unzip the bar file, update the broker.xml, and rezip the bar file. There's also an article on DevWorks by Boris Lublinksy about a Java program to do this as well (designed for v5, should work on v6 no problem).
Some other posters here have done things with custom XSLT. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Jenney |
Posted: Fri May 11, 2007 7:56 am Post subject: |
|
|
Voyager
Joined: 25 Apr 2007 Posts: 83 Location: Melbourne
|
Thanks guys, I appriciate you help.
I'll have to do little more reaserch on this.
-Jenney |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 8:03 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jefflowrey wrote: |
You can do stuff with ANT, for example, to unzip the bar file, update the broker.xml, and rezip the bar file |
I remember I was told by IBM support to do not touch this files manually (every bit is important ).  _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 11, 2007 8:04 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
marcin.kasinski wrote: |
jefflowrey wrote: |
You can do stuff with ANT, for example, to unzip the bar file, update the broker.xml, and rezip the bar file |
I remember I was told by IBM support to do not touch this files manually (every bit is important ).  |
Sure, one wants to be careful. But this is what mqsiapplybaroverrides does. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 8:10 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jefflowrey wrote: |
marcin.kasinski wrote: |
jefflowrey wrote: |
You can do stuff with ANT, for example, to unzip the bar file, update the broker.xml, and rezip the bar file |
I remember I was told by IBM support to do not touch this files manually (every bit is important ).  |
Sure, one wants to be careful. But this is what mqsiapplybaroverrides does. |
Yes, I know. It was little digression. _________________ Marcin |
|
Back to top |
|
 |
|