Author |
Message
|
sebastia |
Posted: Thu May 29, 2008 2:24 am Post subject: FileInput node properties |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
We are using FILEINPUT nodes under MB v 6.1
One of the node properties is the path to the file to read.
Can this value be loaded from a system envir var or any other variable,
as a UDP or Shared var ?
To load it from a "properties" file ?
Our flows live in 3 environments : development, testing and production,
and we dont want the production nodes to have the development file path.
How do you resolve this situation in the real world ?
Sebastia. |
|
Back to top |
|
 |
Gaya3 |
Posted: Thu May 29, 2008 2:33 am Post subject: Re: FileInput node properties |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
sebastia wrote: |
One of the node properties is the path to the file to read.
Can this value be loaded from a system envir var or any other variable,
as a UDP or Shared var ?
To load it from a "properties" file ?
Our flows live in 3 environments : development, testing and production,
and we dont want the production nodes to have the development file path.
How do you resolve this situation in the real world ?
|
File input node, wont dynamically look in to properties file, its a static connectivity node
AFIK, you have to hard code the path address
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
mqpaul |
Posted: Thu May 29, 2008 2:47 am Post subject: A couple of ways to adjust the File directory path |
|
|
 Acolyte
Joined: 14 Jan 2008 Posts: 66 Location: Hursley, UK
|
Both FileInput and FileOutput nodes resolve relative file paths against the MQSI_FILENODES_ROOT_DIRECTORY environment variable. So you can use this to locate directories differently on your different systems. Take care, as an environment variable is per-process, which for broker means per-execution group. If multiple applications share the same group, you can't go changing the variable's value.
The alternative way to change the directory is using the bar file editor when you deploy the application. The directory path is a configurable property for both input and output nodes. You could, if it helped, promote it to a flow property, and change that using the bar file editor. _________________ Paul |
|
Back to top |
|
 |
sebastia |
Posted: Thu May 29, 2008 2:52 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Thanks Gaya, for your opinion.
Thanks, Paul - the PATH seems an interesting starting point.
Just a question : I understand all that you say about the BAR editor,
- I usualy change MQInput properties, even I dont like it -
except one sentence :
"You could, if it helped, promote it to a flow property,
and change that using the bar file editor."
What is the meaning of "PROMOTE IT TO A FLOW PROPERTY" ?
I understand it already is a flow property, or not ?
Is there anything I have to do to make it be "a flow property" ?
Seb. |
|
Back to top |
|
 |
rlagares |
Posted: Thu May 29, 2008 4:34 am Post subject: FTP configuration in FTPInputNode |
|
|
Newbie
Joined: 09 Oct 2007 Posts: 7
|
|
Back to top |
|
 |
sebastia |
Posted: Thu May 29, 2008 8:33 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
I can read the page you pointed me to,
but I dont understand how does it solve
the problem I have ...
Can you provide a sample,
a bit more of explanation,
anything else, please ?
Cheers. Seb. |
|
Back to top |
|
 |
yaakovd |
Posted: Mon Jun 02, 2008 11:33 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Add Input Directory as promote property.
when you create BAR-file, you need allways set this property on "Configure" tab according to your current environment.
Don't forget - Toolkit clean the value after each compilation.
If you set Input Directory and then promote it - this value will be your default after compilation till you change it. _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
mqpaul |
Posted: Wed Jun 04, 2008 4:50 am Post subject: Meaning of "PROMOTE IT TO A FLOW PROPERTY" |
|
|
 Acolyte
Joined: 14 Jan 2008 Posts: 66 Location: Hursley, UK
|
Quote: |
"You could, if it helped, promote it to a flow property,
and change that using the bar file editor."
What is the meaning of "PROMOTE IT TO A FLOW PROPERTY" ?
I understand it already is a flow property, or not ?
Is there anything I have to do to make it be "a flow property" ? |
See the Promoting a Property topic in the broker information center. _________________ Paul |
|
Back to top |
|
 |
sebastia |
Posted: Fri Jun 06, 2008 2:45 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Man - I love pointers .... I love URL's ...
Yes, I am not joking - thanks a lot.
Sometimes I think there is too much documentation
and somehow it has to be filtered before it reached "normal" brains as mine.
( ) |
|
Back to top |
|
 |
|