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 » IIB10.0.0.8 to declare dynamic path for FileInpputNode

Post new topic  Reply to topic
 IIB10.0.0.8 to declare dynamic path for FileInpputNode « View previous topic :: View next topic » 
Author Message
raks
PostPosted: Tue Jun 12, 2018 4:54 pm    Post subject: IIB10.0.0.8 to declare dynamic path for FileInpputNode Reply with quote

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
View user's profile Send private message
abhi_thri
PostPosted: Tue Jun 12, 2018 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Wed Jun 13, 2018 12:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

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
View user's profile Send private message
Vitor
PostPosted: Wed Jun 13, 2018 5:00 am    Post subject: Re: IIB10.0.0.8 to declare dynamic path for FileInpputNode Reply with quote

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
View user's profile Send private message
raks
PostPosted: Tue Jun 19, 2018 4:08 pm    Post subject: IIB10.0.0.8 to declare dynamic path for FileInpputNode Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jun 19, 2018 11:26 pm    Post subject: Re: IIB10.0.0.8 to declare dynamic path for FileInpputNode Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB10.0.0.8 to declare dynamic path for FileInpputNode
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.