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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to