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 » mqsiapplybaroverride and only changing specific values

Post new topic  Reply to topic
 mqsiapplybaroverride and only changing specific values « View previous topic :: View next topic » 
Author Message
4integration
PostPosted: Mon Dec 15, 2008 8:50 am    Post subject: mqsiapplybaroverride and only changing specific values Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Hello,

I want to execute 'mqsiapplybaroverride' to override specific attributes.

It works when using a property file (key=value), only the specified key's value is replaced.
However if the value contains non ASCII characters they gets corrupt (e.g. swedish characters å, ä, ö).

Using an XML file which is based upon broker.xml they values is correct but it seems to replace the file as such. I would like to declare only the changed properties and leav the rest as they are.
Is this possible with XML file?
_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
mqmatt
PostPosted: Mon Dec 15, 2008 11:18 am    Post subject: Reply with quote

Grand Master

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

Are you on 6.0 or 6.1?

V6.1 gives you a lot greater flexibility in providing override values in mqsiapplybaroverride. It also exposes a Java API that allows you to override programmatically in any way you want.
Back to top
View user's profile Send private message
4integration
PostPosted: Mon Dec 15, 2008 10:41 pm    Post subject: Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Hello,

I'm using WMB 6.1 and have looked at http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/an19545_.htm

Having this XML as input:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Broker>
   <CompiledMessageFlow name="GimRouter.GimRouterFlow">

      <ConfigurableProperty override="X.GIMR.IN" uri="GimRouter.GimRouterFlow#GIMR.IN.queueName" />
      <ConfigurableProperty override="X.GIMR.DLQ" uri="GimRouter.GimRouterFlow#GIMR.DLQ.queueName" />
      <ConfigurableProperty override="X.GIMR.ERROR" uri="GimRouter.GimRouterFlow#GIMR.ERROR.queueName" />
      <ConfigurableProperty override="X.GIMR.ADMIN.IN" uri="GimRouter.GimRouterFlow#GIMR.ADMIN.IN.queueName" />

      <ConfigurableProperty override="X.MyName ÅÄÖ" uri="GimRouter.GimRouterFlow#GIMR_CONTACT_NAME" />
      <ConfigurableProperty override="X.Contact GimR Helpdesk" uri="GimRouter.GimRouterFlow#GIMR_CONTACT_ACTION" />
      <ConfigurableProperty override="X.my.email@domain.se" uri="GimRouter.GimRouterFlow#GIMR_CONTACT_EMAIL" />
   </CompiledMessageFlow>
</Broker>

and running:
Code:
mqsiapplybaroverride -b GimrBarTest.bar -p conf\3P_TEST.xml -o GimrBarTest2.bar -v trace.log


Overwrites the XML as whole in the BAR instead of "applying" as said in WMB Infocenter.

From infocenter:
Quote:
A deployment descriptor that is used to apply overrides to the BAR file.


Could this be a bug?
_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
mqmatt
PostPosted: Tue Dec 16, 2008 2:53 am    Post subject: Reply with quote

Grand Master

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

No, that's how it's supposed to work. The flag is used to switch out one deployment descriptor and replace it with another.
You're specifying a new deployment descriptor to apply overrides to a BAR file's contents, not to apply overrides to another deployment descriptor. (If that makes sense!)
I suspect in your scenario a small Java app to merge two deployment descriptors is what you need.
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 » mqsiapplybaroverride and only changing specific values
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.