larryi 02/03/08 03:37:21 Modified: src/share/org/apache/tomcat/modules/server Ajp12Interceptor.java Log: Add a check for "ajpid12" ContextManager property and if found, use it to override the ajpidFile. This allows the ajpid file to be set with command line arguments. Revision Changes Path 1.19 +13 -0 jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12Interceptor.java Index: Ajp12Interceptor.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12Interceptor.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- Ajp12Interceptor.java 27 Feb 2002 03:36:27 -0000 1.18 +++ Ajp12Interceptor.java 8 Mar 2002 11:37:21 -0000 1.19 @@ -109,6 +109,19 @@ ajpidFile=( path==null?null:new File(path)); } + public void engineInit( ContextManager cm ) + throws TomcatException + { + super.engineInit( cm ); + String ajpid12 = cm.getProperty("ajpid12"); + if( ajpid12 != null ) { + if( ajpidFile != null ) { + log( "Overriding ajpidFile with " + ajpid12 ); + } + ajpidFile = new File(ajpid12); + } + } + public void engineState(ContextManager cm, int state ) throws TomcatException {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>