Set System properties at TC startup
Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] cc org Subject Re: Set System properties at TC 19.06.2003 09:45 startup Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] cc org Subject Re: Set System properties at TC 19.06.2003 09:45 startup Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short term, I will probably try to make a mass update once a week or every other week based on questions, gaps, (and my own knowledge of the solution). I already have a list of updates I want to make. (I save a lot of potential responses to a faqqy folder in my email client and wade through it occasionally) The new faq is now at http://jakarta.apache.org/tomcat/faq/ I hope to update the sourceforge version soon -Tim John Turner wrote: This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup [SOLVED]
Thanks to all for the helpful hints. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 John Turner [EMAIL PROTECTED] turner.comTo Tomcat Users List 19.06.2003 14:44 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users Re: Set System properties at TC List startup [EMAIL PROTECTED] rta.apache.org This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Cool! John On Thu, 19 Jun 2003 09:23:47 -0400, Tim Funk [EMAIL PROTECTED] wrote: Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short term, I will probably try to make a mass update once a week or every other week based on questions, gaps, (and my own knowledge of the solution). I already have a list of updates I want to make. (I save a lot of potential responses to a faqqy folder in my email client and wade through it occasionally) The new faq is now at http://jakarta.apache.org/tomcat/faq/ I hope to update the sourceforge version soon -Tim John Turner wrote: This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]