RE: Deploy a Web service with system properties

2004-03-04 Thread Quinn Cao
Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 9:15 AM To: Tomcat Users List Subject: RE: Deploy a Web service with system properties Hi, You can at any point in any of your classes use System.setProperty("LogFileDir"

RE: Deploy a Web service with system properties

2004-03-04 Thread Shapira, Yoav
t;To: [EMAIL PROTECTED] >Subject: Deploy a Web service with system properties > >Could someone give me some help on this? > >I have a service which is started up with the system >properties as following: > >java -DLogFileDir=c:\test\logs -DDataSource=MyDataSource >com.bambi.MySe

Deploy a Web service with system properties

2004-03-04 Thread Quinn Cao
Could someone give me some help on this? I have a service which is started up with the system properties as following: java -DLogFileDir=c:\test\logs -DDataSource=MyDataSource com.bambi.MyService Now I need to convert the above service into a web service by using soap under Tomcat. My question

RE: Setting system properties in standalone Tomcat 4.1.24

2004-01-26 Thread Chris Ward
Thanks. That's just what I needed. I thought I'd done it at some point in the past! Best regards Chris > If by system properties you mean JVM (Java Virtual Machine) > settings, then you can do this by setting the CATALINA_OPTS > variable in the catalina.sh (unix, lin

RE: Setting system properties in standalone Tomcat 4.1.24

2004-01-26 Thread Rudolf Visagie
If by system properties you mean JVM (Java Virtual Machine) settings, then you can do this by setting the CATALINA_OPTS variable in the catalina.sh (unix, linux) or catalina.bat (win32) file in the /bin directory of your Tomcat installation. -Original Message- From: Chris Ward [mailto

Setting system properties in standalone Tomcat 4.1.24

2004-01-26 Thread Chris Ward
Hi all, Sorry if this is a really dumb question, but how/where do I set system properties when using Tomcat 4.1.24? I've searched around but found nothing obvious. Is it in an xml file rather than a .properties file? Is it in the Java JDK? Best regards

Re: classpath issues and system properties

2003-08-21 Thread Justin Ruthenbeck
At 08:48 AM 8/21/2003, you wrote: > > 1. Online documentation about class loader says, > > System class loader operates on CLASSPATH. I have > > included j2ee.jar in my CLASSPATH, but tomcat is > not > > picking it up. Why is it so? > > Wherever you saw these docs, they are wrong. Tomcat > ignores

RE: classpath issues and system properties

2003-08-21 Thread Shapira, Yoav
Howdy, >I found this documentation at >http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html . >Did I misunderstand it or it says what I am thinking? You misunderstood it. >Why is using j2ee.jar with tomcat is not recommended? Because it contains duplicate older versions of c

Re: classpath issues and system properties

2003-08-21 Thread srinivas reddy
--- Bill Barker <[EMAIL PROTECTED]> wrote: > > "srinivas reddy" <[EMAIL PROTECTED]> wrote > in message > news:[EMAIL PROTECTED] > > Hi, > > I am using tomcat 4.1.24. I have a couple of > > questions. > > > > 1. Online documentation about class loader says, > > System class loader operates on CLAS

Re: classpath issues and system properties

2003-08-20 Thread Bill Barker
"srinivas reddy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am using tomcat 4.1.24. I have a couple of > questions. > > 1. Online documentation about class loader says, > System class loader operates on CLASSPATH. I have > included j2ee.jar in my CLASSPATH, but tomcat is

classpath issues and system properties

2003-08-20 Thread srinivas reddy
Hi, I am using tomcat 4.1.24. I have a couple of questions. 1. Online documentation about class loader says, System class loader operates on CLASSPATH. I have included j2ee.jar in my CLASSPATH, but tomcat is not picking it up. Why is it so? 2. When I use tomcat, system property "java.naming.facto

System properties

2003-08-14 Thread Christian Hauser
Hello I'd like to know how I can set system properties when starting Tomcat 4.1. I mean those properties that I can get from within a JSP file as: System.getProperty("CONFIG_HOME") Thank you in advance for any h

RE: System properties

2003-08-14 Thread Shapira, Yoav
Howdy, >But what do I have to do if I would like to set more than one system >property? > >export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ??? Yes, as many as you want just like that. Yoav Shapira This e-mail, including any attachments, is a confidential business communicat

Re: System properties

2003-08-06 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim Christian Hauser wrote: Hello I'd like to know how I can set system properties when starting Tomcat 4.1. I mean those properties that I can get from within a JSP file as: System.getProperty("CONFIG_HOME") Thank you

Re: System properties

2003-08-06 Thread Christian Hauser
Tim Funk wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim Thank you Tim for pointing me to the right place. But what do I have to do if I would like to set more than one system property? export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ??? Regards, Chri

Re: Tomcat and system properties

2003-07-22 Thread Tim Funk
Thats why its a System property. Its global to the JVM. If you want individual configuration options for your webapp then either: - Place them in web.xml as init parameters - Use JNDI and set the config items in server.xml (or appropriate) -Tim Olivier Jouny wrote: Hi all, The system

RE: Tomcat and system properties

2003-07-22 Thread Bodycombe, Andrew
Yes. System properties are set for the JVM not each individual web application. http://java.sun.com/docs/books/tutorial/essential/system/properties.html If you require properties specific to your web application, you should use Servlet initialization parameters or ServletContext Initialization

Tomcat and system properties

2003-07-22 Thread Olivier Jouny
Hi all, The system properties seems to be global in the tomcat JVM which means that a webapps can get the property of an other. This is annoying when you use two different version of the same web app where properties have different value. Is it a normal behavior ? Thanks. Olivier

Re: Set System properties at TC startup

2003-06-19 Thread John Turner
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 sol

Re: Set System properties at TC startup [SOLVED]

2003-06-19 Thread christian . schuster
PROTECTED]> cc Please respond to Subject "Tomcat Users Re: Set System

Re: Set System properties at TC startup

2003-06-19 Thread Tim Funk
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 re

Re: Set System properties at TC startup

2003-06-19 Thread John Turner
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 i

Re: Set System properties at TC startup

2003-06-19 Thread Tim Funk
c org> Subject Re: Set System properties at TC 19.06.2003

Re: Set System properties at TC startup

2003-06-19 Thread christian . schuster
Re: Set System properties at TC 19.06.2003 09:45 startup

Re: Set System properties at TC startup

2003-06-19 Thread Bill Barker
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 prop

Set System properties at TC startup

2003-06-18 Thread christian . schuster
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 i

Re: Configuring System properties

2003-02-07 Thread Craig R. McClanahan
On Fri, 7 Feb 2003, Will Hartung wrote: > > Do all of the webapps see the same System Properties? Yes, if they're running in the same JVM. > I can't imagine why > not (assuming they share a JVM), but with all of the isolation that's > enforced between the

Re: Configuring System properties

2003-02-07 Thread Will Hartung
> From: "Shapira, Yoav" <[EMAIL PROTECTED]> > Sent: Friday, February 07, 2003 6:02 AM > Subject: RE: Configuring System properties > Howdy, > If you want to go the same route, simply add -Dsearcher.home=... to the > JAVA_OPTS variable in $CATALINA_HOME/bin/ca

RE: Configuring System properties

2003-02-07 Thread Shapira, Yoav
nformatics >-Original Message- >From: Sreedhar, Dantam [mailto:[EMAIL PROTECTED]] >Sent: Friday, February 07, 2003 7:53 AM >To: Tomcat Users List >Subject: Configuring System properties > >Hi, > >I am using Java Web Services Developer Pack to expose methods using S

Configuring System properties

2003-02-07 Thread Sreedhar, Dantam
Hi, I am using Java Web Services Developer Pack to expose methods using SOAP. The problem is I want to read a property file location in my program. If the program is of application type, this can be implemented by setting system property using -D searcher.home = command line argument. My qu

RE: tomcat system properties

2002-09-17 Thread Turner, John
CATALINA_HOME/bin/catalina.bat or catalina.sh has the full list. John > -Original Message- > From: Ralph Goers [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 17, 2002 2:23 PM > To: Tomcat Users List > Subject: tomcat system properties > > > Where a

tomcat system properties

2002-09-17 Thread Ralph Goers
Where are the system properties used by tomcat documented somewhere? Are there any others besides catalina.home and catalina.base? Thanks, Ralph

Re: System properties

2002-05-03 Thread PChaganti
What system properties are you referring to? prabhakar >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Is it possible to change system properties from within' a JSP page. -- To

System properties

2002-05-03 Thread Richard Wooding
Hi all, Is it possible to change system properties from within' a JSP page. Regards Richard Wooding -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>

how to set environment variable(or system properties)

2002-04-29 Thread Leland Chen
s where to define these enviornment variables in tomcat ? I especially like the environment variables(or system properties) can be defined to one particular application. Thanks, Leland _ Send and receive Hotma

Re: System properties

2000-11-27 Thread Craig R. McClanahan
Miles Daffin wrote: > Craig, > > I was wondering if there is an optimal way of doing the following in TomCat? > If you have the time to briefly describe such > > Thanks > > Miles > > > > >(I prefer to store global application > > > objects in > > > > the servlet context, so that they are easi

Re: System properties

2000-11-27 Thread Miles Daffin
Craig, I was wondering if there is an optimal way of doing the following in TomCat? If you have the time to briefly describe such Thanks Miles > > >(I prefer to store global application > > objects in > > > the servlet context, so that they are easily visible to all servlets and > > JSP >

Re: System properties

2000-11-20 Thread Craig R. McClanahan
Miles Daffin wrote: > > > > > > As long as this property value is never broadcast > > > i.e. System.setProperty("myProperty", "42"); > > > > > > > System properties, in the sense that we are talking about the > java.lang.

Re: System properties

2000-11-20 Thread Miles Daffin
> > > > As long as this property value is never broadcast > > i.e. System.setProperty("myProperty", "42"); > > > > System properties, in the sense that we are talking about the java.lang.System > class, are global to the entire JVM. Therefore

Re: System properties

2000-11-20 Thread Craig R. McClanahan
> > > myproperty > > > 42 > > > > > > > > > Anyone think this is a good idea, or am I talking rubbish? > > > > It's a bad idea. Keep your web-apps encapsulated. > > Why would such a move, if it were possible, break encapsulation? >

Re: System properties

2000-11-20 Thread Miles Daffin
Hi guys, > > From the looks of things, it is just the way it is, although I was hoping > > the there would be some way to put stuff in the web.xml file, maybe in the > > servlet tag like: > > > > > > myproperty > > 42 > > > > > > Anyone think this is a good idea, or am I talking rubbish? > > It

RE: System properties

2000-11-20 Thread Stuart Farnan
particular web app which I agree means your web apps are less likely to have name clashes with parameters they set, as is the case with System properties, hence more encapsulated. Stu -Original Message- From: Jim Rudnicki [mailto:[EMAIL PROTECTED]] Sent: 20 November 2000 03:11 To: [EMAIL PROTECTED

Re: System properties

2000-11-19 Thread Jim Rudnicki
> From the looks of things, it is just the way it is, although I was hoping > the there would be some way to put stuff in the web.xml file, maybe in the > servlet tag like: > > > myproperty > 42 > > > Anyone think this is a good idea, or am I talking rubbish? It's a bad idea. Keep your web-ap

Re: System properties

2000-11-17 Thread Craig R. McClanahan
(the dtd description did not specifically > say how to get these values back -- I am assuming System.getProperties())? Does > anyone know if more current version of tomcat support it? Will future versions? > You would not really want to use system properties for this in the first plac

RE: System properties

2000-11-17 Thread Stuart Farnan
John Thanks for that, will look into further and let you know. Stuart -Original Message- From: John Ellis [mailto:[EMAIL PROTECTED]] Sent: 17 November 2000 17:44 To: [EMAIL PROTECTED] Subject: Re: System properties According to the dtd: http://java.sun.com/j2ee/dtds/web-app_2.2.dtd

Re: System properties

2000-11-17 Thread John Ellis
d I had > thought that is should be possible to encapsulate all the details of the > connection pooling in one place, including the actions of reading the system > properties file. Yeah, all the stuff is in process, no separate database > access server. > > >From the looks of things,

RE: System properties

2000-11-17 Thread Stuart Farnan
he details of the connection pooling in one place, including the actions of reading the system properties file. Yeah, all the stuff is in process, no separate database access server. >From the looks of things, it is just the way it is, although I was hoping the there would be some way to put

Re: System properties

2000-11-17 Thread Rachel Greenham
/SOAP type thing, then you initialise that task in any way you see fit - the servlet engine just talks to it when it wants to. If you're doing this, you may well want to look seriously at EJB. > I could not find anything about TOMCAT_OPTS on the web site, persumably > this is an e

RE: System properties

2000-11-17 Thread Stuart Farnan
nicer to say "java -Ddb.properties=/home/stuart/db.properties". As the classes are not servlets, servletContext.getResource() is not really an option. I could not find anything about TOMCAT_OPTS on the web site, persumably this is an environment variable, what format do you put system pro

Re: System properties

2000-11-17 Thread Rachel Greenham
On Friday 17 November 2000 14:27, you wrote: > Hi, > > I was wondering if it is possible to pass properties to Tomcat. I have > some classes which read various system properties in their static > initializers, and this works fine when using these classes on the command >

System properties

2000-11-17 Thread Stuart Farnan
Hi, I was wondering if it is possible to pass properties to Tomcat. I have some classes which read various system properties in their static initializers, and this works fine when using these classes on the command line using "java -Dproperty=value". However I am not sure how to