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 » Ace 12 - flow datasource

Post new topic  Reply to topic
 Ace 12 - flow datasource « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Sat Jun 22, 2024 10:50 pm    Post subject: Ace 12 - flow datasource Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Sun Jun 23, 2024 1:08 am    Post subject: Re: Ace 12 - flow datasource Reply with quote

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
View user's profile Send private message Send e-mail
scravr
PostPosted: Sun Jun 23, 2024 3:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
scravr
PostPosted: Tue Jul 02, 2024 9:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Ace 12 - flow datasource
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.