From f64ef66cd16eebc4c686154ec005c4038f2a14fe Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Thu, 26 Feb 2015 09:09:04 +0000 Subject: [PATCH] Removed some old code that, as can be easily noticed by reviewing the lines I am removing, was completely useless; it was probably an half baked experiment that has been committed by error. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662393 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/webapp/control/ContextFilter.java | 9 --------- framework/webtools/webapp/webtools/WEB-INF/web.xml | 6 ------ 2 files changed, 15 deletions(-) diff --git a/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java b/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java index 4dea0cee1a..5d57270387 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java @@ -407,15 +407,6 @@ public class ContextFilter implements Filter { if (Debug.verboseOn()) Debug.logVerbose("Adding web.xml context-param to application attribute with name [" + initParamName + "] and value [" + initParamValue + "]", module); config.getServletContext().setAttribute(initParamName, initParamValue); } - String GeronimoMultiOfbizInstances = (String) config.getServletContext().getAttribute("GeronimoMultiOfbizInstances"); - if (UtilValidate.isNotEmpty(GeronimoMultiOfbizInstances)) { - String ofbizHome = System.getProperty("ofbiz.home"); - if (GeronimoMultiOfbizInstances.equalsIgnoreCase("true") && UtilValidate.isEmpty(ofbizHome)) { - ofbizHome = System.getProperty("ofbiz.home"); // This is only used in case of Geronimo or WASCE using OFBiz multi-instances. It allows to retrieve ofbiz.home value set in JVM env - System.out.println("Set OFBIZ_HOME to - " + ofbizHome); - System.setProperty("ofbiz.home", ofbizHome); - } - } } protected String getServerId() { diff --git a/framework/webtools/webapp/webtools/WEB-INF/web.xml b/framework/webtools/webapp/webtools/WEB-INF/web.xml index 08e3ab96b3..67956c8e50 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/web.xml +++ b/framework/webtools/webapp/webtools/WEB-INF/web.xml @@ -44,12 +44,6 @@ under the License. The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. - - GeronimoMultiOfbizInstances - true - This is only used in case of Geronimo or WASCE using OFBiz multi-instances. It allows to retrieve ofbiz.home value set in JVM env - - ContextFilter ContextFilter