camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1202594 - /camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java
Date Wed, 16 Nov 2011 09:01:12 GMT
Author: davsclaus
Date: Wed Nov 16 09:01:12 2011
New Revision: 1202594

URL: http://svn.apache.org/viewvc?rev=1202594&view=rev
Log:
Polished, no need to 2x flush

Modified:
    camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java

Modified: camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java?rev=1202594&r1=1202593&r2=1202594&view=diff
==============================================================================
--- camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java
(original)
+++ camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaConsumer.java
Wed Nov 16 09:01:12 2011
@@ -112,7 +112,6 @@ public class JpaConsumer extends Schedul
                 if (cause != null) {
                     if (!isTransacted()) {
                         LOG.warn("Error processing last message due: {}. Will commit all
previous successful processed message, and ignore this last failure.", cause.getMessage(),
cause);
-                        entityManager.flush();
                     } else {
                         // rollback all by throwning exception
                         throw cause;



Mime
View raw message