Allow the global naming context to be reset. Useful when running multiple embedded...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 8 Feb 2010 17:07:28 +0000 (17:07 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 8 Feb 2010 17:07:28 +0000 (17:07 +0000)
Doesn't help with multiple instances in parallel - but that was broken anyway.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@907727 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/naming/factory/ResourceLinkFactory.java

index b0c4a10..d67cecc 100644 (file)
@@ -62,8 +62,6 @@ public class ResourceLinkFactory
      * @param newGlobalContext new global context value
      */
     public static void setGlobalContext(Context newGlobalContext) {
-        if (globalContext != null)
-            return;
         globalContext = newGlobalContext;
     }