Author: mlovett
Date: Fri Nov 24 05:18:38 2006
New Revision: 478871
URL: http://svn.apache.org/viewvc?view=rev&rev=478871
Log:
Ensure we clear the transaction flag when in the SenderWorker
Modified:
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
Modified:
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java?view=diff&rev=478871&r1=478870&r2=478871
==============================================================================
---
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
(original)
+++
webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java
Fri Nov 24 05:18:38 2006
@@ -288,11 +288,13 @@
} catch (Exception e) {
if (!withinTransaction && reportTransaction!=null) {
reportTransaction.rollback();
+
configurationContext.setProperty(Sandesha2Constants.WITHIN_TRANSACTION,
Sandesha2Constants.VALUE_FALSE);
rolebacked = true;
}
} finally {
if (!withinTransaction && !rolebacked &&
reportTransaction!=null) {
reportTransaction.commit();
+
configurationContext.setProperty(Sandesha2Constants.WITHIN_TRANSACTION,
Sandesha2Constants.VALUE_FALSE);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]