User: pkendall
  Date: 01/08/16 18:29:34

  Modified:    src/main/org/jboss/mq SpyMessageConsumer.java
  Log:
  Fix message listener acknowledgements
  
  Revision  Changes    Path
  1.4       +2 -2      jbossmq/src/main/org/jboss/mq/SpyMessageConsumer.java
  
  Index: SpyMessageConsumer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyMessageConsumer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SpyMessageConsumer.java   2001/08/17 01:21:38     1.3
  +++ SpyMessageConsumer.java   2001/08/17 01:29:34     1.4
  @@ -29,7 +29,7 @@
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *   @author David Maplesden ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.3 $
  + *   @version $Revision: 1.4 $
    */
   public class SpyMessageConsumer implements MessageConsumer, SpyConsumer, Runnable {
   
  @@ -358,7 +358,7 @@
   
                thisListener.onMessage(message);
   
  -             if (!session.transacted && session.acknowledgeMode == 
session.AUTO_ACKNOWLEDGE || session.acknowledgeMode == session.DUPS_OK_ACKNOWLEDGE) {
  +             if (!session.transacted && (session.acknowledgeMode == 
session.AUTO_ACKNOWLEDGE || session.acknowledgeMode == session.DUPS_OK_ACKNOWLEDGE)) {
                        mes.doAcknowledge();
                }
                mes = null;
  
  
  

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

Reply via email to