|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Diff DB Connections From Within Broker Workflow |
« View previous topic :: View next topic » |
Author |
Message
|
EricL |
Posted: Thu Mar 22, 2018 12:50 pm Post subject: Diff DB Connections From Within Broker Workflow |
|
|
Centurion
Joined: 10 Oct 2014 Posts: 102
|
Hi,
I have workflows accessing DB, DB connection created through following steps:
1. Define a datasource stanza in odbc.ini, say [ABC]
2. Set the new datasource stanza into broker by issuing command:
mqsisetdbparms Brokr -n ABC -u abc -p xyz
3. Create a Database node, and specify Data source name: ABC for the node.
This method is working perfectly for workflows.
There is another way of accessing db from workflow by creating a configuration service:
mqsicreateconfigurableservice Brkr -c SecurityProfiles -o ABC -n XYZ .....
and then invoked the service within workflow (not sure how exactly it is done, as I'm not the developer...)
Question now are:
1. What's the difference of these 2 methods in terms of performance etc?
2. What's the reason behind of "mqsicreateconfigurableservice" method to access db?
Thanks ....
Eric |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 23, 2018 4:41 am Post subject: Re: Diff DB Connections From Within Broker Workflow |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
EricL wrote: |
1. What's the difference of these 2 methods in terms of performance etc? |
Nothing. 2 ways of accessing the same db driver.
EricL wrote: |
2. What's the reason behind of "mqsicreateconfigurableservice" method to access db? |
On a lot of platforms, changing odbc.ini requires a broker restart to be effective because of the way the platform handles database connections. Moving it to a configurable service removes this restriction, and this is why they were introduced in IIBv8 (v9? One of those). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
EricL |
Posted: Fri Mar 23, 2018 12:38 pm Post subject: |
|
|
Centurion
Joined: 10 Oct 2014 Posts: 102
|
Thanks Grand, the answers are great. |
|
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
|
|
|
|