You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2015/04/22 21:33:55 UTC

svn commit: r1675465 - /ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java

Author: doogie
Date: Wed Apr 22 19:33:55 2015
New Revision: 1675465

URL: http://svn.apache.org/r1675465
Log:
OFBIZ-6278: Make use of ResourceLoader.readXmlRootElement, which is
non-caching; this fixes a deprecation warning.

Modified:
    ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java

Modified: ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java?rev=1675465&r1=1675464&r2=1675465&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java (original)
+++ ofbiz/branches/OFBIZ-6275/framework/base/src/org/ofbiz/base/config/JNDIConfigUtil.java Wed Apr 22 19:33:55 2015
@@ -36,7 +36,7 @@ public class JNDIConfigUtil {
 
     private static Element getXmlRootElement() throws GenericConfigException {
         try {
-            return ResourceLoader.getXmlRootElement(JNDIConfigUtil.JNDI_CONFIG_XML_FILENAME);
+            return ResourceLoader.readXmlRootElement(JNDIConfigUtil.JNDI_CONFIG_XML_FILENAME);
         } catch (GenericConfigException e) {
             throw new GenericConfigException("Could not get JNDI XML root element", e);
         }