|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting JMSOutput Node property dynamically |
« View previous topic :: View next topic » |
Author |
Message
|
krypton |
Posted: Wed May 12, 2010 7:21 pm Post subject: Setting JMSOutput Node property dynamically |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
We are trying to set JMSOuput Node configurable property dynamically, but it seems that only the "Destination Data" queue name can be set dynamically as per IBM documentation. Not the rest of the properties.
Quote:
Quote: |
SET OutputLocalEnvironment.Destination.JMSDestinationList.DestinationData[1] = 'jndi://TestDestQueue1'; |
Above shows how to set the Queue Name dynamically what about rest of the properties in a JMSOutput Node i.e. JMS Provider Name, Initial Context Factory, Location JNDI Bindings, Connection Factory Name. Can we set all of these dynamically, as its a "Output node" so that much control should be there.
Regards |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 13, 2010 4:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Are you *really* going to be changing *JMSProviders* or *JNDI SERVERS* that often, that you can't just change it during deploy?
Are you really *sure* you're *ever* going to be changing JMS Providers? And that you actually want to do that WITHOUT having previously *tested* that Provider?
You appear to be trying to be so clever that you make your life harder than it has to be. |
|
Back to top |
|
 |
krypton |
Posted: Thu May 13, 2010 6:20 am Post subject: |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
Quote: |
Are you *really* going to be changing *JMSProviders* or *JNDI SERVERS* that often, that you can't just change it during deploy?
|
Hi jeff, JNDI directory would be changing from environment to environment, but I can keep JMSProviders and JNDI as constant.
Thanks. Now, it doesnt sound that much of a work. _________________ Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 13, 2010 7:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Changing "from environment to environment" is pretty expected and basic.
You set that when you deploy.
Or, really, your Broker Admins set it when they deploy.
There's not much use to change this in your code. |
|
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
|
|
|
|