You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "validruk (JIRA)" <ji...@apache.org> on 2016/01/12 13:25:39 UTC
[jira] [Commented] (JCS-157) RemoteCacheFactory ignores host and
port configuration on client
[ https://issues.apache.org/jira/browse/JCS-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093809#comment-15093809 ]
validruk commented on JCS-157:
------------------------------
My patch, I have a problem to attach file with path.
Index: src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheFactory.java
===================================================================
--- src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheFactory.java (revision 1721153)
+++ src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheFactory.java (working copy)
@@ -116,6 +116,7 @@
if (location != null)
{
failovers.add( location );
+ rca.setRemoteLocation(location);
RemoteCacheManager rcm = getManager( rca, cacheMgr, cacheEventLogger, elementSerializer );
// add a listener if there are none, need to tell rca what
> RemoteCacheFactory ignores host and port configuration on client
> ----------------------------------------------------------------
>
> Key: JCS-157
> URL: https://issues.apache.org/jira/browse/JCS-157
> Project: Commons JCS
> Issue Type: Bug
> Components: RMI Remote Cache
> Affects Versions: jcs-2.0-beta-2
> Reporter: validruk
> Labels: patch, remote
>
> I tested JCS client with remote cache and I had problem to connect to remote cache, my client was always trying to connect to port 1099 (default) and ignores configuration. I think that problem is in class RemoteCacheFactory. In attachment is my simple fix. It is now working, but I'm not sure if it is correct.
> client.jcf:
> jcs.auxiliary.RServer=org.apache.commons.jcs.auxiliary.remote.RemoteCacheFactory
> jcs.auxiliary.RServer.attributes=org.apache.commons.jcs.auxiliary.remote.RemoteCacheAttributes
> jcs.auxiliary.RServer.attributes.FailoverServers=localhost:1103
> remoteServer.jcf
> registry.host=localhost
> registry.port=1103
> remote.cache.service.port=1103
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)