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 » PropertiesFile

Post new topic  Reply to topic
 PropertiesFile « View previous topic :: View next topic » 
Author Message
Jenney
PostPosted: Thu May 10, 2007 6:44 am    Post subject: PropertiesFile Reply with quote

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
View user's profile Send private message
Jenney
PostPosted: Thu May 10, 2007 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu May 10, 2007 7:04 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The properties are simple name value pairs.
Full description here:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/af03900_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Jenney
PostPosted: Thu May 10, 2007 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu May 10, 2007 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Jenney
PostPosted: Fri May 11, 2007 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri May 11, 2007 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Jenney
PostPosted: Fri May 11, 2007 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 11, 2007 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Fri May 11, 2007 7:44 am    Post subject: Reply with quote

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:

Quote:
123=10


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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Fri May 11, 2007 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Jenney
PostPosted: Fri May 11, 2007 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 11, 2007 8:03 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Fri May 11, 2007 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 11, 2007 8:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PropertiesFile
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.