> -----Original Message----- > From: Matthias Müller [mailto:mm4...@googlemail.com] > Sent: Thursday, September 20, 2012 2:02 PM > To: Tomcat Users List > Subject: Re: Setting JVM Parameters in Windows Service for Tomcat7 > > Hi, > > >Environment variables are irrelevant when running services. That's why > >the registry values exist. > > That's a good point! > Thanks for the nice discussion. > > > Matthias - can you please elaborate on exactly what "it is not > > practicable for our production environment" means? > > I want to put the configuration files and property settings in a local > VCS (e.g. a local git) so that I can track the changes. > But now I see, that there are some technical reasons for using the > registry. > I think I will use a batch-script then which sets the registry. > > Matthias > > PS > There are two ways of setting the registry: > > 1. CLI via "tomcat.exe //US//Tomcat7 ..." > There are some examples in the service.bat file. > 2. gui via tomcatw.exe > > But I think both ways are not compatible. > I.E. when using "tomcat.exe //US//Tomcat7" I won't find the values in > tomcatw.exe But that's not a problem for me.
Not to nitpick, but there is a 3rd way. (Not that I'd really recommend it for someone who can't get the Tomcat GUI to work for them.) Use regedit to export the Procrun branch of the registry tree to a "registry merge file", which you can then modify with notepad.exe. Then all you have to do is double-click the merge file to have the setting replace those in the registry. Remember, I don't recommend this unless you really know what you're doing. It's by far easier to use the GUI. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org