Re: AW: Basic question about application configuration

2019-10-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mathieu, On 10/24/19 14:26, Mathieu Dubois wrote: > Dear Christopher, > > Le 24/10/2019 à 00:36, Christopher Schultz a écrit : >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Mathieu, >> >> On 10/23/19 17:23, Mathieu Dubois wrote: >>> I

Re: AW: Basic question about application configuration

2019-10-24 Thread Mathieu Dubois
Dear Christopher, Le 24/10/2019 à 00:36, Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mathieu, On 10/23/19 17:23, Mathieu Dubois wrote: I noticed that the application also need to access to a directory to store the result of some computation usually outside th

Re: AW: Basic question about application configuration

2019-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mathieu, On 10/23/19 17:23, Mathieu Dubois wrote: > I noticed that the application also need to access to a directory > to store the result of some computation usually outside the > location of tomcat (the results can be rather large). As for the DB

Re: AW: Basic question about application configuration

2019-10-23 Thread Mathieu Dubois
Hi again, I noticed that the application also need to access to a directory to store the result of some computation usually outside the location of tomcat (the results can be rather large). As for the DB this depends on each instance of the application. Is there a similar mechanism for such a

Re: AW: Basic question about application configuration

2019-10-23 Thread Mathieu Dubois
Hi Bernd, Le 23/10/2019 à 06:55, bernd.sch...@daimler.com a écrit : Hi Mathieu, -Ursprüngliche Nachricht- Von: Mathieu Dubois Gesendet: Mittwoch, 23. Oktober 2019 03:00 An: users@tomcat.apache.org [SNIP] I have read a bit about Tomcat and if I understand correctly, the correct way t

AW: Basic question about application configuration

2019-10-22 Thread bernd . schatz
Hi Mathieu, > -Ursprüngliche Nachricht- > Von: Mathieu Dubois > Gesendet: Mittwoch, 23. Oktober 2019 03:00 > An: users@tomcat.apache.org [SNIP] > I have read a bit about Tomcat and if I understand correctly, the > correct way to do is to declare a Resource in the configuration of each >

Basic question about application configuration

2019-10-22 Thread Mathieu Dubois
Dear Tomcat users, I am not familiar with Tomcat or the Java world in general so I have a rather simple question. Part of my job is to maintain and evolve a Java web application based on JBPM which as such use a (MySQL) DB. This application is independently deployed on a handful Tomcat serve

Re: Convenient web application configuration.

2008-11-06 Thread Jason Cipriani
Hmm, well, there are no other web applications, the server is dedicated to this one. If there *were* other web applications, they would likely be using the same data source anyways -- and in that case it's certainly handy to be able to set the data source for multiple web apps by maintaining just a

Re: Convenient web application configuration.

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, Jason Cipriani wrote: > My end solution ended up being to modify > $CATALINA_ROOT/conf/context.xml and put the JNDI data source > definition there. Yikes! You should /definitely/ not do that. Doing so will make that JNDI data source available

Re: Convenient web application configuration.

2008-11-06 Thread Jason Cipriani
My end solution ended up being to modify $CATALINA_ROOT/conf/context.xml and put the JNDI data source definition there. While I agree that modifying global server files is less than ideal it is by far the simplest solution: It's only one resource element that has to be added, it requires no modific

Re: Convenient web application configuration.

2008-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, Jason Cipriani wrote: > I'm developing with Eclipse but could configure custom build steps > with ant. This solution would remove most of the inconvenience, but I > would still have to make 4 separate WARs available for distribution. > Not *too

Re: Convenient web application configuration.

2008-11-01 Thread Bill Barker
"Jason Cipriani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and > Windows Vista (UAC disabled). > > I have a web application with a lot of configuration options, all > currently stored as servlet initialization par

RE: Convenient web application configuration.

2008-10-30 Thread br1
Hi, Caldarale, Charles R wrote: > >> From: br1 [mailto:[EMAIL PROTECTED] >> Subject: Re: Convenient web application configuration. >> >> The easiest way is to place Context and the different >> Resource elements into each Tomcat's server.xml file. > &g

Re: Convenient web application configuration.

2008-10-30 Thread Juha Laiho
Jason Cipriani wrote: > I have a web application with a lot of configuration options, all > currently stored as servlet initialization parameters in > WEB-INF/web.xml. The parameters are site specific and are different > for my development machine, the machines of the two other developers > working

Re: Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
On Thu, Oct 30, 2008 at 8:22 AM, Pid <[EMAIL PROTECTED]> wrote: > Is your build process automated, say with ant or maven? > If so, it should be a relatively simple one-off job to configure > multiple output war files from one codebase with several configurations. I'm developing with Eclipse but co

RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
> From: br1 [mailto:[EMAIL PROTECTED] > Subject: Re: Convenient web application configuration. > > The easiest way is to place Context and the different > Resource elements into each Tomcat's server.xml file. Certainly not "easiest" by any definition of t

Re: Convenient web application configuration.

2008-10-30 Thread br1
it helps, br1 -- View this message in context: http://www.nabble.com/Convenient-web-application-configuration.-tp20244034p20252816.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mai

RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
> From: Jason Cipriani [mailto:[EMAIL PROTECTED] > Subject: Convenient web application configuration. > > Is there a better place I can store site-specific > configuration options? Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters

Re: Convenient web application configuration.

2008-10-30 Thread Pid
Jason Cipriani wrote: > I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and > Windows Vista (UAC disabled). > > I have a web application with a lot of configuration options, all > currently stored as servlet initialization parameters in > WEB-INF/web.xml. The parameters are site sp

Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and Windows Vista (UAC disabled). I have a web application with a lot of configuration options, all currently stored as servlet initialization parameters in WEB-INF/web.xml. The parameters are site specific and are different for my de

Re: Can I pass values to application configuration file on command line

2008-07-23 Thread Bill Barker
"Jim Cant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way I can use replaceable parameters in an application's xml > configuration file and pass a value in on the Tomcat command line. In > particular, I would like to set the value of docBase so that I can launch > t

Re: Can I pass values to application configuration file on command line

2008-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, Jim Cant wrote: | Is there a way I can use replaceable parameters in an application's xml | configuration file and pass a value in on the Tomcat command line. In | particular, I would like to set the value of docBase so that I can launch | tomc

RE: Can I pass values to application configuration file on command line

2008-07-23 Thread robert.purvis
on the command line with $APP_PATH Rob -Original Message- From: Jim Cant [mailto:[EMAIL PROTECTED] Sent: 23 July 2008 15:51 To: users@tomcat.apache.org Subject: Can I pass values to application configuration file on command line Is there a way I can use replaceable parameters in

Can I pass values to application configuration file on command line

2008-07-23 Thread Jim Cant
Is there a way I can use replaceable parameters in an application's xml configuration file and pass a value in on the Tomcat command line. In particular, I would like to set the value of docBase so that I can launch tomcat and have it find my app in different locations without having to edit the x

Re: Application configuration: how to read files from a web application

2006-05-18 Thread Hans Sowa
. Tim -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 12:02 AM To: Tomcat Users List Subject: Application configuration: how to read files from a web application A few people in the last few days on the Tomcat Users have essentially asked: How do I

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Tim Lucia
Tomcat admin application. Tim -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 12:02 AM To: Tomcat Users List Subject: Application configuration: how to read files from a web application A few people in the last few days on the Tomcat Users

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 11:31 AM To: Tomcat Users List Subject: Re: Application configuration: how to read files from a web application

Re: Application configuration: how to read files from a web application

2006-05-17 Thread Mark Petrovic
hin the application? Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 6:02 AM To: Tomcat Users List Subject: Application co

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
MAIL PROTECTED] Sent: Wednesday, May 17, 2006 6:02 AM To: Tomcat Users List Subject: Application configuration: how to read files from a web application A few people in the last few days on the Tomcat Users have essentially asked: How do I read a file from disk from within my web application, and further

Application configuration: how to read files from a web application

2006-05-16 Thread Mark Petrovic
ust be along the application's classpath - and nowhere else. This is probably worth a close read Class Loader HOW-TO: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Futhermore, to declaratively configure your application, you'd like to put this file path in your application

Re: Application Configuration

2006-05-16 Thread Mark Thomas
Mark Petrovic wrote: > I can help you off list. Please mail me directly. Doing things off-list is generally a bad idea as the Tomcat community as a whole is unable to benefit from the experience. Mark - To unsubscribe, e-mail:

Re: Application Configuration

2006-05-14 Thread Mark Petrovic
Users List Subject: Re: Application Configuration You can put those types of resources in your .war file and access them as "resources". servlet.getClass().getResource("xmlfile.xml"); type of scheme. On 5/8/06, Asaf Lahav <[EMAIL PROTECTED]> wrote: > > Hi ev

RE: Application Configuration

2006-05-14 Thread Asaf Lahav
2-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 8:10 PM To: Tomcat Users List Subject: Re: Application Configuration You can put those types of resources in your .war file and ac

Re: Application Configuration

2006-05-08 Thread Mark Petrovic
… *Asaf Lahav* *VP R&D, Prima Grid LTD.* Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -- *From:* Asaf Lahav [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 08, 2006 11:30 AM *To:* users@tomcat.apache.org *Subject:* Application C

RE: Application Configuration

2006-05-08 Thread Asaf Lahav
sers@tomcat.apache.org Subject: Application Configuration   Hi all,   I'm building a web services application that requires configuration xml files. Is there a location where I should put the xml configuration files? Is there a best practice saying where to put configuration files? If ther

RE: Application Configuration

2006-05-08 Thread Tim Lucia
_ From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 5:30 AM To: users@tomcat.apache.org Subject: Application Configuration Hi all, I'm building a web services application that requires configuration xml files. Is there a location where I should put th

Application Configuration

2006-05-08 Thread Asaf Lahav
Hi all,   I'm building a web services application that requires configuration xml files. Is there a location where I should put the xml configuration files? Is there a best practice saying where to put configuration files? If there is, how am I expected to get the configuration info f