james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [1/6] james-project git commit: JAMES-2331 Remove trial to rollback a non transacted session
Date Thu, 08 Feb 2018 09:05:22 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 23b0c18d1 -> 965f1ecf1


JAMES-2331 Remove trial to rollback a non transacted session


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/16d71043
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/16d71043
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/16d71043

Branch: refs/heads/master
Commit: 16d710438c49f54e10b5447914c5aabcf1f6c5d7
Parents: 23b0c18
Author: benwa <btellier@linagora.com>
Authored: Mon Feb 5 09:14:00 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Mon Feb 5 09:14:00 2018 +0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/james/queue/jms/JMSMailQueue.java      | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/16d71043/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
----------------------------------------------------------------------
diff --git a/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
b/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
index a0509f3..01f23d5 100644
--- a/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
+++ b/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
@@ -232,7 +232,6 @@ public class JMSMailQueue implements ManageableMailQueue, JMSSupport,
MailPriori
             enqueuedMailsMetric.increment();
             mailQueueSize.increment();
         } catch (Exception e) {
-            rollback(session);
             throw new MailQueueException("Unable to enqueue mail " + mail, e);
         } finally {
             timeMetric.stopAndPublish();


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message