Author |
Message
|
Tiru |
Posted: Mon Mar 31, 2014 12:13 am Post subject: Config and property files |
|
|
Newbie
Joined: 31 Mar 2014 Posts: 2
|
Hi,
In which location we place property files and configuration files related to application. It should read those files in run-time.
user.home folder means which folder it refers in our local.
In windows XP we used to place property files and configuration files in c:\documents and settings\ administrator folder.
Now I'm using Windows 7 and broker version also 7.
Thanks for you help. |
|
Back to top |
|
 |
Esa |
Posted: Mon Mar 31, 2014 12:43 am Post subject: Re: Config and property files |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
Tiru wrote: |
It should read those files in run-time.
|
Is the requirement really to read files in runtime?
Or access properties?
There may be better alternatives for accessing properties than reading files. |
|
Back to top |
|
 |
Tiru |
Posted: Mon Mar 31, 2014 1:23 am Post subject: |
|
|
Newbie
Joined: 31 Mar 2014 Posts: 2
|
Not reading the files. Values inside the files want to access. |
|
Back to top |
|
 |
Tibor |
Posted: Mon Mar 31, 2014 3:34 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 31, 2014 5:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Tiru wrote: |
Not reading the files. Values inside the files want to access. |
Don't do this in WMBv7. Or any version of WMB/IIB.
My worthy associate is quite right in this. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Mon Mar 31, 2014 7:07 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Aside from being inelegant, reading config files in the flow will impact performance unncessarily, unless you developed a form of caching.
UDPs are commonly used for runtime properties, I have also seen User Configurable Service definitions used.
Sometimes it's possible to actually avoid the need for environment overrides in the flow (for example with the use of the MQSI_FILENODES_ROOT_DIRECTORY variable). _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
|