|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mqsiapplybaroverride and only changing specific values |
« View previous topic :: View next topic » |
Author |
Message
|
4integration |
Posted: Mon Dec 15, 2008 8:50 am Post subject: mqsiapplybaroverride and only changing specific values |
|
|
 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 |
|
 |
mqmatt |
Posted: Mon Dec 15, 2008 11:18 am Post subject: |
|
|
 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 |
|
 |
4integration |
Posted: Mon Dec 15, 2008 10:41 pm Post subject: |
|
|
 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 |
|
 |
mqmatt |
Posted: Tue Dec 16, 2008 2:53 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|