[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/callback ...
Ron Sigal
ron_sigal at yahoo.com
Sun Aug 5 03:39:44 EDT 2007
User: rsigal
Date: 07/08/05 03:39:44
Modified: src/main/org/jboss/remoting/callback Tag: remoting_2_2_0_GA
ServerInvokerCallbackHandler.java
Log:
JBREM-765: Checks for "callbackTimeout" configuration parameter.
Revision Changes Path
No revision
No revision
1.15.2.10.2.1 +23 -0 JBossRemoting/src/main/org/jboss/remoting/callback/ServerInvokerCallbackHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServerInvokerCallbackHandler.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/callback/ServerInvokerCallbackHandler.java,v
retrieving revision 1.15.2.10
retrieving revision 1.15.2.10.2.1
diff -u -b -r1.15.2.10 -r1.15.2.10.2.1
--- ServerInvokerCallbackHandler.java 7 Mar 2007 06:08:56 -0000 1.15.2.10
+++ ServerInvokerCallbackHandler.java 5 Aug 2007 07:39:44 -0000 1.15.2.10.2.1
@@ -114,6 +114,9 @@
*/
public static final String CALLBACK_ID = "callbackId";
+ /** This key is used to identify the timeout used by a callback client */
+ public static final String CALLBACK_TIMEOUT = "callbackTimeout";
+
/**
* The percentage number of used memory before should persist messages.
* For example, if 64MB available and only 30MB free mem and memPercentCeiling
@@ -160,6 +163,26 @@
clientConfig.putAll(owner.getConfiguration());
clientConfig.putAll(metadata);
}
+
+ Object o = clientConfig.get(CALLBACK_TIMEOUT);
+ if (o instanceof String)
+ {
+ try
+ {
+ Integer.parseInt((String) o);
+ clientConfig.put(ServerInvoker.TIMEOUT, o);
+ log.debug(this + " using callbackTimeout value " + o);
+ }
+ catch (NumberFormatException e)
+ {
+ log.warn("callbackTimeout value must have valid numeric format: " + o);
+ }
+ }
+ else
+ {
+ log.warn("callbackTimeout value must be a String: " + o);
+ }
+
// need to configure callback client with ssl config if one exists for server
configureSocketFactory(clientConfig, owner);
More information about the jboss-cvs-commits
mailing list