You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ml...@apache.org on 2006/11/24 12:10:29 UTC

svn commit: r478834 - /webservices/sandesha/trunk/java/src/org/apache/sandesha2/client/SandeshaClient.java

Author: mlovett
Date: Fri Nov 24 03:10:26 2006
New Revision: 478834

URL: http://svn.apache.org/viewvc?view=rev&rev=478834
Log:
Ensure we do not nest transactions within SandeshaClient, see SANDESHA2-47

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=478834&r1=478833&r2=478834
==============================================================================
--- 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 03:10:26 2006
@@ -117,8 +117,10 @@
 			withinTransaction = true;
 
 		Transaction reportTransaction = null;
-		if (!withinTransaction)
+		if (!withinTransaction) {
 			reportTransaction = storageManager.getTransaction();
+			configurationContext.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, Sandesha2Constants.VALUE_TRUE);
+		}
 
 		boolean rolebacked = false;
 
@@ -242,8 +244,10 @@
 			withinTransaction = true;
 
 		Transaction reportTransaction = null;
-		if (!withinTransaction)
+		if (!withinTransaction) {
 			reportTransaction = storageManager.getTransaction();
+			configurationContext.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, Sandesha2Constants.VALUE_TRUE);
+		}
 
 		boolean rolebacked = false;
 
@@ -1018,9 +1022,11 @@
 			withinTransaction = true;
 
 		Transaction reportTransaction = null;
-		if (!withinTransaction)
+		if (!withinTransaction) {
 			reportTransaction = storageManager.getTransaction();
-
+			configCtx.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, Sandesha2Constants.VALUE_TRUE);
+		}
+		
 		boolean rolebacked = false;
 
 		try {



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