[jboss-cvs] contrib/varia/src/main/org/jboss/mq/il/http/servlet ...

Scott Stark scott.stark at jboss.com
Sun Jul 23 18:50:48 EDT 2006


  User: starksm 
  Date: 06/07/23 18:50:47

  Modified:    varia/src/main/org/jboss/mq/il/http/servlet 
                        HTTPServerILServlet.java
  Log:
  Cleanup the debug logging
  
  Revision  Changes    Path
  1.6       +11 -23    contrib/varia/src/main/org/jboss/mq/il/http/servlet/HTTPServerILServlet.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HTTPServerILServlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/varia/src/main/org/jboss/mq/il/http/servlet/HTTPServerILServlet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- HTTPServerILServlet.java	27 May 2006 15:00:36 -0000	1.5
  +++ HTTPServerILServlet.java	23 Jul 2006 22:50:47 -0000	1.6
  @@ -58,8 +58,8 @@
    * the max time the request will last, before returning to the client.
    *
    * @author    Nathan Phelps (nathan at jboss.org)
  - * @version   $Revision: 1.5 $
  - * @created   January 15, 2003
  + * @version   $Revision: 1.6 $
  + * @since   January 15, 2003
    */
   public class HTTPServerILServlet extends HttpServlet
   {
  @@ -87,10 +87,7 @@
           {
               throw new ServletException("Invoker must be specified as servlet init parameter");
           }
  -        if (log.isDebugEnabled())
  -        {
               log.debug("Invoker set to '" + invokerName + ".'");
  -        }
           try
           {
               this.invoker = (JMSServerInvoker)server.getAttribute(new ObjectName(invokerName), "Invoker");
  @@ -130,19 +127,13 @@
                   }
                   String clientIlId = (String)httpIlRequest.getArguments()[0];
                   long timeout = ((Long)httpIlRequest.getArguments()[1]).longValue();
  -                if (log.isDebugEnabled())
  -                {
                       log.debug("Listening on behalf of a ClientIL #" + clientIlId + " for " + String.valueOf(timeout) + " milliseconds.");
  -                }
                   HTTPILRequest[] responseRequest = HTTPClientILStorageQueue.getInstance().get(clientIlId, timeout);
  -                if (log.isDebugEnabled())
  -                {
                       log.debug("The following lines reflect the HTTPILRequest object to be packaged and returned to ClientIL #" + clientIlId + " as an HTTPILResponse.");
                       for (int i = 0; i < responseRequest.length; i++)
                       {
                           log.debug("Response for ClientIL #" + clientIlId + " contains '" + responseRequest[i].toString() + ".'");
                       }
  -                }
                   outputStream.writeObject(new HTTPILResponse(responseRequest));
               }
               else if (methodName.equals("getClientILIdentifer"))
  @@ -152,10 +143,7 @@
                       log.trace("getClientILIdentifer(HTTPILRequest " + httpIlRequest.toString() + ")");
                   }
                   String id = HTTPClientILStorageQueue.getInstance().getID();
  -                if (log.isDebugEnabled())
  -                {
                       log.debug("Provided ClientIL Id #" + id + ".");
  -                }
                   outputStream.writeObject(new HTTPILResponse(id));
               }
               else if (methodName.equals("stopClientListening"))
  @@ -202,7 +190,7 @@
                   long wait = ((Long)httpIlRequest.getArguments()[2]).longValue();
                   SpyMessage message = this.invoker.receive(connectionToken, subscriberId, wait);
                   outputStream.writeObject(new HTTPILResponse(message));
  -                if (message != null && log.isDebugEnabled())
  +                if (message != null && log.isTraceEnabled())
                   {
                       log.debug("Returned an instance of '" + message.getClass().toString() + "' with value of '" + message.toString() + "'");
                   }
  @@ -246,12 +234,12 @@
                   }
                   Method method = this.invoker.getClass().getMethod(methodName, httpIlRequest.getArgumentTypes());
                   Object returnValue = method.invoke(this.invoker, httpIlRequest.getArguments());
  -                if (log.isDebugEnabled())
  +                if (log.isTraceEnabled())
                   {
                       log.debug("Invoked method '" + methodName + ".'");
                   }
                   outputStream.writeObject(new HTTPILResponse(returnValue));
  -                if (returnValue != null && log.isDebugEnabled())
  +                if (returnValue != null && log.isTraceEnabled())
                   {
                       log.debug("Returned an instance of '" + returnValue.getClass().toString() + "' with value of '" + returnValue.toString() + "'");
                   }
  
  
  



More information about the jboss-cvs-commits mailing list