User: ejort   
  Date: 02/02/09 08:09:24

  Modified:    src/main/org/jboss/ejb/plugins/jms DLQHandler.java
                        JMSContainerInvoker.java
  Log:
  Guarded info logging. Faster when not interested in life-cycle logging
  
  Revision  Changes    Path
  1.8       +3 -3      jboss/src/main/org/jboss/ejb/plugins/jms/DLQHandler.java
  
  Index: DLQHandler.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jms/DLQHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DLQHandler.java   7 Jan 2002 20:54:19 -0000       1.7
  +++ DLQHandler.java   9 Feb 2002 16:09:24 -0000       1.8
  @@ -52,7 +52,7 @@
    * Created: Thu Aug 23 21:17:26 2001
    *
    * @author
  - * @version $Revision: 1.7 $ $Date: 2002/01/07 20:54:19 $
  + * @version $Revision: 1.8 $ $Date: 2002/02/09 16:09:24 $
    */
   
   public class DLQHandler
  @@ -188,8 +188,8 @@
            // if we can't get the id we are basically fucked
            if(id != null && incrementResentCount(id) > maxResent)
            {
  -            log.info("Message resent to many time, sending it to DLQ. Id: "
  -            + id);
  +            if (log.isInfoEnabled())
  +               log.info("Message resent too many time, sending it to DLQ. Id: " + 
id);
               sendMessage(msg);
               deleteFromBuffer(id);
               return true;
  
  
  
  1.43      +3 -2      
jboss/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java
  
  Index: JMSContainerInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- JMSContainerInvoker.java  17 Jan 2002 17:18:30 -0000      1.42
  +++ JMSContainerInvoker.java  9 Feb 2002 16:09:24 -0000       1.43
  @@ -56,7 +56,7 @@
    *      </a>
    * @author    <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author    <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  - * @version   $Revision: 1.42 $
  + * @version   $Revision: 1.43 $
    */
   public class JMSContainerInvoker
      implements ContainerInvoker, XmlLoadable
  @@ -711,7 +711,8 @@
         }
         if (destType == null)
         {
  -         log.info("WARNING Could not determine destination type, defaults to: " + 
DEFAULT_DESTINATION_TYPE);
  +         if (log.isInfoEnabled())
  +            log.info("WARNING Could not determine destination type, defaults to: " 
+ DEFAULT_DESTINATION_TYPE);
            destType = DEFAULT_DESTINATION_TYPE;
         }
         return destType;
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to