From: "liooil " <[EMAIL PROTECTED]>
> What would be the best pratice to get properties from an external file?
> (I mean this file is not part of my war).
> I'd like it to be read on servelt startup and properties to be be
> available in servlet context ...
> I though about a struts plugIn , but it
Is the path to the config file something you can hard-code? If so, how
about simply a class with a static initializer block to read the config
file, then expose the values through a static getConfig() method
returning a static HashMap? That's about as simple, light-weight and
environment-agno
Is the path to the config file something you can hard-code? If so, how about
simply a class with a static initializer block to read the config file, then
expose the values through a static getConfig() method returning a static
HashMap? That's about as simple, light-weight and environment-agnos
> -Original Message-
> From: liooil [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: external properties
>
>
> Hello world,
>
> What would be the best pratice to get properties from an
> external file?
> (I mean this file is not p
4 matches
Mail list logo