Add parameters into tomcat service ......

2005-10-10 Thread Tony Lu
Tomcat (5.0.28) runs on Windows 2003 Server.

Web application needs some information from tomcat starup. So I add
following statement in startup.bat batch file
set JAVA_OPTS=-Xms512m -Xmx512m -
Daos.configuration=%CATALINA_HOME%/conf/aos.config
Application runs well When I start Tomcat by startup.bat

But now I need to install Tomcat as windows service, how to add
aforementioned statement into this tomcat service?
Following is what I have done for it, but it failed.

1: Modify service.bat file, add --JvmOptions -Xms512m;-Xmx512m;-
Daos.configuration=%CATALINA_HOME%/conf/aos.config behind
%EXECUTABLE% //IS//%SERVICE_NAME%
2: Make Tomcat as Windows Service

run :service install tomcat5

3: Start service 'tomcat5'

But application runs not well because it can not get information from
startup parameters.

My question is:
how to add statement set JAVA_OPTS=-Xms512m -Xmx512m -
Daos.configuration=%CATALINA_HOME%/conf/aos.config
into tomcat5 service?

Thanks


RE: Add parameters into tomcat service ......

2005-10-10 Thread Caldarale, Charles R
 From: Tony Lu [mailto:[EMAIL PROTECTED] 
 Subject: Add parameters into tomcat service ..
 
 My question is:
 how to add statement set JAVA_OPTS=-Xms512m -Xmx512m -
 Daos.configuration=%CATALINA_HOME%/conf/aos.config
 into tomcat5 service?

Use tomcat5w.exe from the bin directory.  Add the options you want under
the Java tab.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]