You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/02/08 18:07:28 UTC

svn commit: r907727 - /tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java

Author: markt
Date: Mon Feb  8 17:07:28 2010
New Revision: 907727

URL: http://svn.apache.org/viewvc?rev=907727&view=rev
Log:
Allow the global naming context to be reset. Useful when running multiple embedded instances in series since it allows each instance to configure its own global naming context.
Doesn't help with multiple instances in parallel - but that was broken anyway.

Modified:
    tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java

Modified: tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java?rev=907727&r1=907726&r2=907727&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java (original)
+++ tomcat/trunk/java/org/apache/naming/factory/ResourceLinkFactory.java Mon Feb  8 17:07:28 2010
@@ -62,8 +62,6 @@
      * @param newGlobalContext new global context value
      */
     public static void setGlobalContext(Context newGlobalContext) {
-        if (globalContext != null)
-            return;
         globalContext = newGlobalContext;
     }
 



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