Re: Place .ini conf file inside the war package.

2010-12-07 Thread srd.pl
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

Re: Place .ini conf file inside the war package.

2010-12-05 Thread Pid *
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

Re: Place .ini conf file inside the war package.

2010-12-05 Thread Christopher Schultz
-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

Re: Place .ini conf file inside the war package.

2010-12-05 Thread Rainer Jung
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().

Re: Place .ini conf file inside the war package.

2010-12-04 Thread Pid
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

Re: Place .ini conf file inside the war package.

2010-12-04 Thread Mark Eggers
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()

Re: Place .ini conf file inside the war package.

2010-12-04 Thread Brian Braun
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