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
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -44,12 +44,6 @@ under the License.
|
||||
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
|
||||
</context-param>
|
||||
|
||||
<context-param>
|
||||
<param-name>GeronimoMultiOfbizInstances</param-name>
|
||||
<param-value>true</param-value>
|
||||
<description>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</description>
|
||||
</context-param>
|
||||
|
||||
<filter>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<display-name>ContextFilter</display-name>
|
||||
|
||||
Reference in New Issue
Block a user