mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed settings to make client ping server
This commit is contained in:
parent
49b32d0354
commit
9bb0172cb8
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ import org.jboss.remoting.Client;
|
||||||
import org.jboss.remoting.ConnectionListener;
|
import org.jboss.remoting.ConnectionListener;
|
||||||
import org.jboss.remoting.ConnectionValidator;
|
import org.jboss.remoting.ConnectionValidator;
|
||||||
import org.jboss.remoting.InvokerLocator;
|
import org.jboss.remoting.InvokerLocator;
|
||||||
|
import org.jboss.remoting.Remoting;
|
||||||
import org.jboss.remoting.callback.Callback;
|
import org.jboss.remoting.callback.Callback;
|
||||||
import org.jboss.remoting.callback.HandleCallbackException;
|
import org.jboss.remoting.callback.HandleCallbackException;
|
||||||
import org.jboss.remoting.callback.InvokerCallbackHandler;
|
import org.jboss.remoting.callback.InvokerCallbackHandler;
|
||||||
|
@ -135,6 +136,7 @@ public class Session {
|
||||||
clientMetadata.put(SocketWrapper.WRITE_TIMEOUT, "2000");
|
clientMetadata.put(SocketWrapper.WRITE_TIMEOUT, "2000");
|
||||||
clientMetadata.put("generalizeSocketException", "true");
|
clientMetadata.put("generalizeSocketException", "true");
|
||||||
clientMetadata.put(Client.ENABLE_LEASE, "true");
|
clientMetadata.put(Client.ENABLE_LEASE, "true");
|
||||||
|
clientMetadata.put(Remoting.USE_CLIENT_CONNECTION_IDENTITY, "true");
|
||||||
callbackClient = new Client(clientLocator, "callback", clientMetadata);
|
callbackClient = new Client(clientLocator, "callback", clientMetadata);
|
||||||
|
|
||||||
Map<String, String> listenerMetadata = new HashMap<String, String>();
|
Map<String, String> listenerMetadata = new HashMap<String, String>();
|
||||||
|
|
Loading…
Reference in a new issue