|
From: Leif M. <le...@ta...> - 2005-07-16 00:33:15
|
Brent, I added the following to that page to make it a little clearer: --- Properties can be specified from the command line when using any of the Wrapper commands, including the -i command, used to install the application as a service on Windows systems. When running the wrapper and its JVM as a console application using the -c command, the specified properties will override any values in the wrapper.conf file and be used when launching the JVM. Likewise, the -i command, which is used to install the wrapper as a service, will remember the specified properties and then use them later when the service is actually started. Likewise, the specified properties will be used to override values in the wrapper.conf file while installing the service. All other commands will make use of command line properties to override values in the configuration file. These will effect logging or the way the service is referenced. They will have no effect on the running JVM. It is not possible for example to pass a property value to a service while starting it with the -t command for example. --- Cheers, Leif Brent Palmer wrote: >I'm trying to pass in a configuration property from the command line using the wrapper.exe and the -t option. It works when I use the console app option but not the service app option. Here are the commands I'm using. > >C:\>wrapper.exe -c ../conf/wrapper.conf wrapper.java.additiona >l.3=-DCLEAR_LOCKS=true > >C:\>wrapper.exe -t ../conf/wrapper.conf wrapper.java.additiona >l.3=-DCLEAR_LOCKS=true > >I assume you are supposed to be able to do this based on the following quote from the JSW docs [http://wrapper.tanukisoftware.org/doc/english/props-command-line.html] >" Properties can be specified from the command line when using any of the Wrapper commands, including the -i command, used to install the application as a service on Windows systems." If I specify it in the config file, it works. > >I'll attach the wrapper.log. Notice the lines specifying the command to start the JVM. > >Thanks in advance, >Brent > > |