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-w

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
INF/classes of your war file once you run maven > package. > > Read the javadoc on Class.getResourceAsStream() concerning how to locate the > properties file. > > . . . . just my two cents. > > /mde/ > > ----- Original Message > From: srd.pl > To: users

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

2010-12-04 Thread Mark Eggers
sStream() concerning how to locate the properties file. . . . . just my two cents. /mde/ - Original Message From: srd.pl To: users@tomcat.apache.org Sent: Sat, December 4, 2010 3:58:25 AM Subject: Place .ini conf file inside the war package. Hello, I have a quick question considerin

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

2010-12-04 Thread Brian Braun
> View this message in context: > http://old.nabble.com/Place-.ini-conf-file-inside-the-war-package.-tp30366628p30366628.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To unsubscribe,

Place .ini conf file inside the war package.

2010-12-04 Thread srd.pl
file (what path) in my java code. I am using maven so an advice on how to write a special script in the pom.xml file would be great. -- View this message in context: http://old.nabble.com/Place-.ini-conf-file-inside-the-war-package.-tp30366628p30366628.html Sent from the Tomcat - User mailing list