From 9bb0172cb868152a47b3340839ef22609d2ed4f9 Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Mon, 15 Aug 2011 14:58:41 -0400 Subject: [PATCH] fixed settings to make client ping server --- Mage.Common/src/mage/remote/Session.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mage.Common/src/mage/remote/Session.java b/Mage.Common/src/mage/remote/Session.java index 0fab2b5630..cd9c76a658 100644 --- a/Mage.Common/src/mage/remote/Session.java +++ b/Mage.Common/src/mage/remote/Session.java @@ -58,6 +58,7 @@ import org.jboss.remoting.Client; import org.jboss.remoting.ConnectionListener; import org.jboss.remoting.ConnectionValidator; import org.jboss.remoting.InvokerLocator; +import org.jboss.remoting.Remoting; import org.jboss.remoting.callback.Callback; import org.jboss.remoting.callback.HandleCallbackException; import org.jboss.remoting.callback.InvokerCallbackHandler; @@ -135,6 +136,7 @@ public class Session { clientMetadata.put(SocketWrapper.WRITE_TIMEOUT, "2000"); clientMetadata.put("generalizeSocketException", "true"); clientMetadata.put(Client.ENABLE_LEASE, "true"); + clientMetadata.put(Remoting.USE_CLIENT_CONNECTION_IDENTITY, "true"); callbackClient = new Client(clientLocator, "callback", clientMetadata); Map listenerMetadata = new HashMap();