Thank's guys. I am now loading the properties file, but in order to provide
changes in the file i need to restart the webservice on tomcat. I'll at the
appach commons closer for that.
--
View this message in context:
http://old.nabble.com/Place-.ini-conf-file-inside-the-war-package.-tp30366628p
On 5 Dec 2010, at 19:20, Christopher Schultz
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Pid,
>
> On 12/4/2010 5:07 PM, Pid wrote:
>> On 12/4/10 5:41 PM, Mark Eggers wrote:
>>> Read about using properties files. They're typically called
>>> .properties.
>>>
>>> Snippet of code t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pid,
On 12/4/2010 5:07 PM, Pid wrote:
> On 12/4/10 5:41 PM, Mark Eggers wrote:
>> Read about using properties files. They're typically called
>> .properties.
>>
>> Snippet of code that can be placed in a ServletContextListener.
>>
>> String resource
On 04.12.2010 23:07, Pid wrote:
On 12/4/10 5:41 PM, Mark Eggers wrote:
Read about using properties files. They're typically called.properties.
Snippet of code that can be placed in a ServletContextListener.
String resource = "some.properties";
InputStream in = this.getClass().getClassLoader().
On 12/4/10 5:41 PM, Mark Eggers wrote:
> Read about using properties files. They're typically called .properties.
>
> Snippet of code that can be placed in a ServletContextListener.
>
> String resource = "some.properties";
> InputStream in =
> this.getClass().getClassLoader().getResourceAsStream
Read about using properties files. They're typically called .properties.
Snippet of code that can be placed in a ServletContextListener.
String resource = "some.properties";
InputStream in = this.getClass().getClassLoader().getResourceAsStream(resource);
try {
props.load(in);
in.close()
http://commons.apache.org/configuration/ ?
On Sat, Dec 4, 2010 at 6:58 AM, srd.pl wrote:
>
> Hello,
>
> I have a quick question considering my rest webservice. I would like to
> place an .ini file with configuration parameters inside an war file, so
> that
> I can change them wile the app is dep