Author |
Message
|
ganesh |
Posted: Sat Aug 21, 2010 4:17 pm Post subject: mqsireadbar |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
I am using MB toolkit v 6.0.2 and i used the mqsireadbar cmd to read the properties of a bar file. I am not able to see any properties of the bar file.
This is what i see
Quote: |
C:\Program Files\IBM\MessageBrokersToolkit\6.0\eclipse>mqsireadbar -b C:\rp_10.4
\Mainflows\new1.bar
BAR File: new1.bar
BAR Entry: ******.cmf
Modification Time: Aug 20, 2010 6:28:46 PM
|
|
|
Back to top |
|
 |
Vitor |
Posted: Sat Aug 21, 2010 4:32 pm Post subject: Re: mqsireadbar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ganesh wrote: |
I am not able to see any properties of the bar file.
|
And?
What keywords are defined in the bar file in question? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ganesh |
Posted: Sat Aug 21, 2010 5:09 pm Post subject: Re: mqsireadbar |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
Vitor wrote: |
ganesh wrote: |
I am not able to see any properties of the bar file.
|
And?
What keywords are defined in the bar file in question? |
I am sorry i did not understand which keywords you are talking about. The bar file consists of just message flows and i would like to change the properties of message flows before deploying it to another environment. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Aug 21, 2010 5:30 pm Post subject: Re: mqsireadbar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ganesh wrote: |
would like to change the properties of message flows before deploying it to another environment. |
Well you wouldn't do that with that command, and that command doesn't show those properties. Just the bar file's keywords (if defined).  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ganesh |
Posted: Sat Aug 21, 2010 5:43 pm Post subject: Re: mqsireadbar |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
Vitor wrote: |
ganesh wrote: |
would like to change the properties of message flows before deploying it to another environment. |
Well you wouldn't do that with that command, and that command doesn't show those properties. Just the bar file's keywords (if defined).  |
Yes i agree mqsiapplybaroverride is used to change the properties of a bar file. But how do we check the new properties of a bar file after executing the mqsiapplybaroverride command, can't we use the mqsiread cmd to check the new properties? |
|
Back to top |
|
 |
Vitor |
Posted: Sat Aug 21, 2010 6:06 pm Post subject: Re: mqsireadbar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ganesh wrote: |
But how do we check the new properties of a bar file after executing the mqsiapplybaroverride command |
Why? You don't think it works? You think the successful completeion of the mqsiapplybaroverride is a cunning bluff? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ganesh |
Posted: Sat Aug 21, 2010 7:05 pm Post subject: Re: mqsireadbar |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
Vitor wrote: |
ganesh wrote: |
But how do we check the new properties of a bar file after executing the mqsiapplybaroverride command |
Why? You don't think it works? You think the successful completeion of the mqsiapplybaroverride is a cunning bluff? |
This is the message i get, it says command completed succesfully but no. of overiden values processed=0
Quote: |
Updating override values for Broker Archive File "C:\****\******\***.bar"
using properties file "C:\****\properties\****.properties".
Updating override values for compiled message flow "********.cmf".
Updating override values for compiled message flow "********.cmf".
Number of warnings while updating override values: 0
Number of errors while updating override values: 0
Number of override values processed: 0
Number of override values not found: 0
BIP0986I Command completed successfully. |
This is why i am getting a doubt. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Aug 22, 2010 1:10 pm Post subject: Re: mqsireadbar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ganesh wrote: |
This is why i am getting a doubt. |
You have no reason for doubt. The command clearly indicates it's not updated anything, so you don't need mqsireadbar (or anything else) to confirm that the bar file is unchanged. You may rely upon it.
If the question you're trying to answer is "why did nothing change", your answer is here:
ganesh wrote: |
Number of override values processed: 0 |
If you don't (correctly) ask it to do anything, it doesn't do it. Check the syntax of your properties file as a first move. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ganesh |
Posted: Mon Aug 23, 2010 10:26 am Post subject: mqsireadbar |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
When i used the same bar file in v 6.1 it works perfectly.
Quote: |
E:\IBM\MQSI\6.1>mqsiapplybaroverride -b E:\IBM\wmbws\ws1\***.bar -p E:\IBM\wmbw
s\ws1\***.properties
BIP1137I: Applying overrides using toolkit mqsiapplybaroverride...
BIP1140I: Overriding property **********#InputQueueName with '****
TROUTE.REQ.**'...
BIP1143I: Saving Bar file E:\IBM\wmbws\ws1\****.bar...
BIP8071I: Successful command completion.
|
|
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 23, 2010 10:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
ganesh |
Posted: Mon Aug 23, 2010 10:45 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
I am not working with bar files created in 6.1. Please look into my previous posts. I created a bar file in 6.0.2 and used mqsiapplybaroverride and mqsireadbar commands but i did not get the desired output. I used the bar file created in 6.0.2 and executed the applybaroverride and readbar commands in a machine which has v6.1 and it worked. My question was is there any extra installations or fixpacks required in v6.0.2 to run those commands? |
|
Back to top |
|
 |
ganesh |
Posted: Mon Sep 13, 2010 8:24 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
The mistake was with the syntax of the properties in the .properties file. It works now.
URI_****#InputQueueName=********. |
|
Back to top |
|
 |
|