Author |
Message
|
raks |
Posted: Tue Jun 12, 2018 4:54 pm Post subject: IIB10.0.0.8 to declare dynamic path for FileInpputNode |
|
|
Novice
Joined: 07 Dec 2010 Posts: 11
|
Hi,
Can anyone suggest me how to define dynamic path for file-input node.
IIB Version : 10.0.0.8
Scenario : Same Server has 2 IIB instance are running IIB_A and IIB_B.
Same flow should read the file from 2 location /var/mqsi/IIB_A/external/Config/*.xml and /var/mqsi/IIB_B/external/Config/*.xml path
Is there any option to dynamically override input directory path in 10.0.0.8 version??? |
|
Back to top |
|
 |
abhi_thri |
Posted: Tue Jun 12, 2018 10:59 pm Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
You can achieve that via BAR overrides, apply the right value to the BAR file before deployment.
Similarly if the flow were listening on Remote servers the remote directory can be set via 'FtpServer' configurable service property 'remoteDirectory'.
PS: I'm not sure it is a good practice to use IIB's workpath location (/var/mqsi) to store files for your interfaces. Ideally the workpath location should be left alone for IIB's internal stuff and use a separate file mount point for interface related activities (or better use an internal FTP server within your network) |
|
Back to top |
|
 |
timber |
Posted: Wed Jun 13, 2018 12:07 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Quote: |
I'm not sure it is a good practice to use IIB's workpath location (/var/mqsi) to store files for your interfaces |
I'll go further...I'm absolutely certain that it's a terrible idea! |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 13, 2018 5:00 am Post subject: Re: IIB10.0.0.8 to declare dynamic path for FileInpputNode |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
raks wrote: |
IIB Version : 10.0.0.8
Scenario : Same Server has 2 IIB instance are running IIB_A and IIB_B.
Same flow should read the file from 2 location /var/mqsi/IIB_A/external/Config/*.xml and /var/mqsi/IIB_B/external/Config/*.xml path
|
I do hope you're not storing flow configuration information in an XML file that you pick up at run time. IIB is not WAS and shouldn't be treated as such.
I'm led to this alarming possibility that you're trying to pull these files out of the /var/mqsi<broker name> directory (where broker internals are stored) and a user directory called config.
This is a bad idea and a terrible design. You walk a path to pain and misery; turn back.
raks wrote: |
Is there any option to dynamically override input directory path in 10.0.0.8 version??? |
You can "dynamically" change where the file input node reads a file from using a BAR override at deploy time. Having read it, it will then delete it or move it (depending on how you've configured it) and that's your config gone.
You can't configure a deployed file to point to a different location and you shouldn't want to. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
raks |
Posted: Tue Jun 19, 2018 4:08 pm Post subject: IIB10.0.0.8 to declare dynamic path for FileInpputNode |
|
|
Novice
Joined: 07 Dec 2010 Posts: 11
|
This scenario is only applicable from UAT on-wards.. In UAT we have 2 IIB instance is running parallel to handle load. Deployment time it will deploy single bar into both IIB instances. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 19, 2018 11:26 pm Post subject: Re: IIB10.0.0.8 to declare dynamic path for FileInpputNode |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
raks wrote: |
This scenario is only applicable from UAT on-wards.. In UAT we have 2 IIB instance is running parallel to handle load. Deployment time it will deploy single bar into both IIB instances. |
Thanks for sharing. What's that got to do with anything you've previously posted?
I stand by my previous post. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|