Commit a4410fb6 authored by afreyssin's avatar afreyssin

Bug fix [JORAM-279]: removes recover flag after handling in AutoAcknowledge mode.

parent be5c9968
/* /*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging * JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2013 ScalAgent Distributed Technologies * Copyright (C) 2001 - 2017 ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 Dyade * Copyright (C) 1996 - 2000 Dyade
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -2478,13 +2478,13 @@ public class Session implements javax.jms.Session, SessionMBean { ...@@ -2478,13 +2478,13 @@ public class Session implements javax.jms.Session, SessionMBean {
} }
if (recover) { if (recover) {
recover = false;
// The session has been recovered by the // The session has been recovered by the
// listener thread. // listener thread.
if (autoAck) { if (autoAck) {
denyMessage(mcl.getTargetName(), msgId, mcl.getQueueMode(), true); denyMessage(mcl.getTargetName(), msgId, mcl.getQueueMode(), true);
} else { } else {
doRecover(); doRecover();
recover = false;
} }
} else { } else {
if (autoAck) { if (autoAck) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment