In the remote.cache.ccf file you need to specify the address of the
remote object that you will add to the registry.

Replace "localhost" with the machine name or ip.

registry.host=localhost
registry.port=1102

> -----Original Message-----
> From: Nentwig, Timo [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 26, 2005 7:05 AM
> To: jcs-users@jakarta.apache.org
> Subject: remote cache: connection to 127.0.0.1 refused (?)
> 
> Hi!
> 
> While my local one-machine experiments with the RemoteCacheServer ran
> fine I now encounter some confusing RMI problem after having moved the
> remote server to a dedicated machine (Connection refused to host:
> 127.0.0.1 @RemoteCacheManager.getCache().addRemoteCacheListener()):
> 
> 172  [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCacheManager
-
> looking up server
>
//10.10.10.3:1102/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheS
> ervice
> 1203 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCacheManager
-
> server found
> 1203 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCacheManager
-
> remoteService =
>
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer_Stub[RemoteStub
> [ref:
> [endpoint:[127.0.0.1:32811](remote),objID:[1975b59:106919a6c05:-8000,
> 0]]]]
> 1219 [Thread-2] DEBUG
org.apache.jcs.auxiliary.remote.RemoteCacheMonitor
> - Monitoring daemon started
> 1219 [Thread-2] DEBUG
org.apache.jcs.auxiliary.remote.RemoteCacheMonitor
> - FAILURE DRIVEN MODE: cache monitor waiting for error
> 2203 [main] ERROR org.apache.jcs.auxiliary.remote.RemoteCacheManager
-
> Connection refused to host: 127.0.0.1; nested exception is:
>       java.net.ConnectException: Connection refused: connect
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  -
> Construct> cacheName=default
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  - irca
=
>  remoteHost = 10.10.10.3
>  remotePort = 1102
>  cacheName = default
>  removeUponRemotePut = true
>  getOnly = false
>  getTimeoutMillis = -1
>  threadPoolName = remote_cache_client
>  remoteType = 0
>  localClusterConsistency = false
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  -
remote
> =
>
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer_Stub[RemoteStub
> [ref:
> [endpoint:[127.0.0.1:32811](remote),objID:[1975b59:106919a6c05:-8000,
> 0]]]]
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  -
> listener =
>  RemoteCacheListener:
>  RemoteHost = 10.10.10.3
>  RemotePort = 1102
>  ListenerId = 0
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  -
> GetTimeoutMillis() = -1
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCacheListener
-
> get listenerId = 0
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCache  - get
> listenerId = 0
> 2219 [main] DEBUG org.apache.jcs.auxiliary.remote.RemoteCacheListener
-
> get listenerId = 0
> 
> 
> The client ought to connect to 10.10.10.3. I don't quite understand
why
> it attempts to esthablish a connection to localhost?
> 
> The client's configuration:
> 
> cs.auxiliary.remote=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
>
jcs.auxiliary.remote.attributes=org.apache.jcs.auxiliary.remote.RemoteCa
> cheAttributes
> jcs.auxiliary.remote.attributes.FailoverServers=10.10.10.3:1102
> jcs.auxiliary.remote.attributes.GetOnly=false
> 
> 
> Can somebody explain?
> 
> Thanks a lot,
> Timo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to