You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2015/04/01 17:29:52 UTC

svn commit: r1670679 - /commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java

Author: tv
Date: Wed Apr  1 15:29:52 2015
New Revision: 1670679

URL: http://svn.apache.org/r1670679
Log:
Fix JCS-141: RemoteCacheServerFactory ignores configuration

Modified:
    commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java

Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java?rev=1670679&r1=1670678&r2=1670679&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java Wed Apr  1 15:29:52 2015
@@ -118,7 +118,7 @@ public class RemoteCacheServerFactory
                 log.info( "ConfigFileName = [" + propFile + "]" );
             }
             Properties props = RemoteUtils.loadProps( propFile );
-            startup(host, port, props);
+            startup(host, port, props, propFile);
         }
     }
 
@@ -133,7 +133,7 @@ public class RemoteCacheServerFactory
      * @param props
      * @throws IOException
      */
-    public static void startup( String host, int port, Properties props )
+    public static void startup( String host, int port, Properties props, String propFile )
         throws IOException
     {
         if ( remoteCacheServer != null )
@@ -153,7 +153,7 @@ public class RemoteCacheServerFactory
             }
 
             RemoteCacheServerAttributes rcsa = configureRemoteCacheServerAttributes(props);
-            //rcsa.setConfigFileName( propFile );
+            rcsa.setConfigFileName( propFile );
 
             // These should come from the file!
             rcsa.setRemotePort( port );