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:47:29 UTC
svn commit: r739717 -
/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
Author: ffang
Date: Sun Feb 1 08:47:28 2009
New Revision: 739717
URL: http://svn.apache.org/viewvc?rev=739717&view=rev
Log:
[SM-1781]CxfBcJmsTransaction*Test is broken caused by recent change in cxf
Modified:
servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=739717&r1=739716&r2=739717&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java (original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java Sun Feb 1 08:47:28 2009
@@ -314,6 +314,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;
@@ -836,7 +837,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");
}
}