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

Post new topic  Reply to topic
 mqsireadbar « View previous topic :: View next topic » 
Author Message
ganesh
PostPosted: Sat Aug 21, 2010 4:17 pm    Post subject: mqsireadbar Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Aug 21, 2010 4:32 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Sat Aug 21, 2010 5:09 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Aug 21, 2010 5:30 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Sat Aug 21, 2010 5:43 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Aug 21, 2010 6:06 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Sat Aug 21, 2010 7:05 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Aug 22, 2010 1:10 pm    Post subject: Re: mqsireadbar Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Mon Aug 23, 2010 10:26 am    Post subject: mqsireadbar Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 23, 2010 10:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't work with bar files created in 6.1 using tools from 6.0.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ah61110_.htm
Back to top
View user's profile Send private message
ganesh
PostPosted: Mon Aug 23, 2010 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Mon Sep 13, 2010 8:24 am    Post subject: Reply with quote

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
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 » mqsireadbar
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.