|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Ace 12 - flow datasource |
« View previous topic :: View next topic » |
Author |
Message
|
scravr |
Posted: Sat Jun 22, 2024 10:50 pm Post subject: Ace 12 - flow datasource |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Hi to all,
Anyone knows how to get app or flow datasource via Java calls?
I could not find any API under all Proxy's import from com.ibm.integration.admin.proxy.*
I basically need the odbc name flow is using.
Thanks,
Mo |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jun 23, 2024 1:08 am Post subject: Re: Ace 12 - flow datasource |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
scravr wrote: |
Hi to all,
Anyone knows how to get app or flow datasource via Java calls?
I could not find any API under all Proxy's import from com.ibm.integration.admin.proxy.*
I basically need the odbc name flow is using.
Thanks,
Mo |
Find out the location of the flow on disk (from the proxy). Calculate the path from the IntegrationNodeLocalUtilities and environment variables to get the path to the file. Then load the file into the FlowRendererMSGFlow (com.ibm.broker.config.appdev) and get the nodes. On the corresponding node you should find the relevant information.
That's also how you can get the URLSpecifier on an HTTP input node...
I'd also look under the resources at the integration service level... or flow level.
Hope it helps
Hop it helps. _________________ MQ & Broker admin |
|
Back to top |
|
 |
scravr |
Posted: Sun Jun 23, 2024 3:22 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Not sue how to follow suggestion.
Maybe few more details.... |
|
Back to top |
|
 |
scravr |
Posted: Tue Jul 02, 2024 9:02 pm Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
here is how I think it works:
Create IntegrationNodeLocalUtilities INLUtil
Get Node Path with INLUtil.getLocalNodeworkpath(brokername)
Add flow's broker-xml location to node path. broker-xml file location is diff between IIB7 and IIB10.
Read broker-xml with FileInputStream
Extract the datasource override element with XPathExpression, XPathFactory, XPath.compile
Get the dbschema as String from the XPathExpression.evaluate of broker-xml [/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
|
|
|
|