If you want to use JAVA_OPTS with a windows service you'll need to make registry edits. I'm not sure of the exact keys. I believe there is a tool that can configure it though.
If you start it on the command line then it will obey your environment variable or can be set in catalina.sh or catalina.bat Ta Matt -----Original Message----- From: Sasha Borodin [mailto:[EMAIL PROTECTED] Sent: 29 July 2004 17:26 To: Tomcat Users List Subject: Re: Proxy settings for Tomcat's JVM Let me state the question in a more general way: If you wanted to pass JVM arguments, where would you do it? Does the Tomcat5 NT service use the JAVA_OPTS environment variable? Has anyone had success using deployment.properties: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proper ties.html Thanks, -Sasha Borodin > From: Sasha Borodin <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > Date: Thu, 29 Jul 2004 11:05:49 -0500 > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Proxy settings for Tomcat's JVM > > Can anyone tell me the best place (from a maintenance perspective) to set > http/ftp/etc proxy settings for the JVM in which tomcat runs? > > I'm talking about the settings that impact java.net.Socket operation (not > the proxy settings found in server.xml). > > I know I can make a context listener that does something like this to get > things set up: > System.getProperties().put( "ftpProxySet", "true" ); > System.getProperties().put( "ftpProxyHost", "myProxyMachineName" ); > System.getProperties().put( "ftpProxyPort", "85" ); > > But this should be a deployment configuration; as far as I know, there's two > ways to do it: > A) either as a parameter to the JVM > B) or in a jvm config file (deployment.properties) > > Has anyone had any luck with option B? I haven't... > > If you were to use option a, where would you store the arguments to the jvm? > > Thank you, > > -Sasha Borodin > > > > --------------------------------------------------------------------- > 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]
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
