tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Nielsen <gl...@mail.more.net>
Subject Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardEngine.java
Date Fri, 03 Jan 2003 19:50:56 GMT
Please create property names which are in a package,
i.e. org.apache.ajp.jvmRoute instead of jvmRoute.  Then it is easier
to grant or prevent access to the property using the SecurityManager
PropertyPermission.

Thanks,

Glenn

jfclere@apache.org wrote:
> jfclere     2003/01/03 08:59:08
> 
>   Modified:    catalina/src/share/org/apache/catalina/core
>                         StandardEngine.java
>   Log:
>   Allow to use the system property to set the JvmRoute.
>   
>   Revision  Changes    Path
>   1.2       +9 -4      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardEngine.java
>   
>   Index: StandardEngine.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- StandardEngine.java	18 Jul 2002 16:48:12 -0000	1.1
>   +++ StandardEngine.java	3 Jan 2003 16:59:08 -0000	1.2
>   @@ -104,6 +104,11 @@
>    
>            super();
>            pipeline.setBasic(new StandardEngineValve());
>   +        /* Set the jmvRoute using the system property jvmRoute */
>   +        try {
>   +            setJvmRoute(System.getProperty("jvmRoute"));
>   +        } catch(Exception ex) {
>   +        }
>    
>        }
>    
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message