[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ron Sigal
ron_sigal at yahoo.com
Mon Jul 2 01:50:55 EDT 2007
User: rsigal
Date: 07/07/02 01:50:55
Modified: src/main/org/jboss/remoting Tag: remoting_2_x
ServerInvoker.java
Log:
JBREM-706: Added ECHO internal invocation.
Revision Changes Path
No revision
No revision
1.52.2.33 +14 -1 JBossRemoting/src/main/org/jboss/remoting/ServerInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServerInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/ServerInvoker.java,v
retrieving revision 1.52.2.32
retrieving revision 1.52.2.33
diff -u -b -r1.52.2.32 -r1.52.2.33
--- ServerInvoker.java 2 Jun 2007 06:49:01 -0000 1.52.2.32
+++ ServerInvoker.java 2 Jul 2007 05:50:55 -0000 1.52.2.33
@@ -69,7 +69,7 @@
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
*
- * @version $Revision: 1.52.2.32 $
+ * @version $Revision: 1.52.2.33 $
*/
public abstract class ServerInvoker extends AbstractInvoker implements ServerInvokerMBean
{
@@ -1546,6 +1546,19 @@
"No handler registered of proper type (StreamInvocationHandler).");
}
}
+ else if (InternalInvocation.ECHO.equals(methodName))
+ {
+ Object response = null;
+ Object[] objects = param.getParameters();
+ if (objects != null && objects.length > 0)
+ response = objects[0];
+
+ if (trace)
+ {
+ log.trace(this + " echoing " + response);
+ }
+ return response;
+ }
else
{
log.error("Error processing InternalInvocation. Unable to process method " +
More information about the jboss-cvs-commits
mailing list