You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2009/02/01 09:26:22 UTC

svn commit: r739709 - /servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Author: ffang
Date: Sun Feb  1 08:26:21 2009
New Revision: 739709

URL: http://svn.apache.org/viewvc?rev=739709&view=rev
Log:
[SM-1781]CxfBcJmsTransaction*Test is broken caused by recent change in cxf

Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=739709&r1=739708&r2=739709&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java (original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java Sun Feb  1 08:26:21 2009
@@ -322,6 +322,7 @@
                 if (tm == null) {
                     throw new IllegalStateException("No TransactionManager available");
                 } else if (tm instanceof PlatformTransactionManager) {
+                    jmsConfig.setSessionTransacted(true);
                     jmsConfig.setTransactionManager((PlatformTransactionManager)tm);
                     setSynchronous(true);
                     transactionEnabled = true;
@@ -842,7 +843,7 @@
                 }
                 //this exception is undefined in the wsdl, so tell the transactionManager injected into
                 //jms transport need rollback
-                throw new RuntimeException("rollback");
+                throw new Error("rollback");
             }
         }