[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/web ...
Ron Sigal
ron_sigal at yahoo.com
Fri Nov 2 02:51:36 EDT 2007
User: rsigal
Date: 07/11/02 02:51:36
Modified: src/tests/org/jboss/test/remoting/transport/web Tag:
remoting_2_x WebInvocationHandler.java
Log:
JBREM-838: Replaced System.out.println() with log.debug().
Revision Changes Path
No revision
No revision
1.6.4.3 +6 -2 JBossRemoting/src/tests/org/jboss/test/remoting/transport/web/WebInvocationHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: WebInvocationHandler.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/web/WebInvocationHandler.java,v
retrieving revision 1.6.4.2
retrieving revision 1.6.4.3
diff -u -b -r1.6.4.2 -r1.6.4.3
--- WebInvocationHandler.java 1 Nov 2007 07:21:32 -0000 1.6.4.2
+++ WebInvocationHandler.java 2 Nov 2007 06:51:36 -0000 1.6.4.3
@@ -26,6 +26,8 @@
import java.util.Map;
import javax.management.MBeanServer;
+
+import org.apache.log4j.Logger;
import org.jboss.remoting.InvocationRequest;
import org.jboss.remoting.ServerInvocationHandler;
import org.jboss.remoting.ServerInvoker;
@@ -52,6 +54,8 @@
public static final String SET_CONTENT_TYPE = "setContentType";
public static final String CONTENT_TYPE = "test/testContentType";
+ private static Logger log = Logger.getLogger(WebInvocationHandler.class);
+
/**
* called to handle a specific invocation
*
@@ -62,14 +66,14 @@
public Object invoke(InvocationRequest invocation) throws Throwable
{
// Print out the invocation request
- System.out.println("Invocation request is: " + invocation.getParameter());
+ log.debug("Invocation request is: " + invocation.getParameter());
if(NULL_RETURN_PARAM.equals(invocation.getParameter()))
{
return null;
}
else if(THROW_EXCEPTION_PARAM.equals(invocation.getParameter()))
{
- System.out.println("throwing WebTestException");
+ log.debug("throwing WebTestException");
throw new WebTestException("This is an exception being thrown as part of test case. It is intentional.");
}
else if(invocation.getParameter() instanceof ComplexObject)
More information about the jboss-cvs-commits
mailing list