Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by KevinWilliams:
http://wiki.apache.org/ws/WorkingWithTransactions

------------------------------------------------------------------------------
  try {
       doSomeJMSStuff();
       doSomeDASStuff();
-       tx.commit();
+      tx.commit();
  } catch (AnyException ex) {
       tx.rollback();
  } 
  }}}
  
+ In the example above, the DAS has been configured to not managed transactions 
since this is handled by the calling program.
+ 
+ The DAS is set to behave this way by a piece of configuration (typically via 
a configuration xml file).  The following config file snippet illustrates this 
setting:
+ 
+ {{{
+ <Config 
xsi:noNamespaceSchemaLocation="http:///org.apache.tuscany.das.rdb/config.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+ 
+       <ConnectionInfo managedtx="false"/>
+       
+       <Command name="get a customer" SQL="Select * from CUSTOMER where ID = 
1" kind="select"/>
+       
+ </Config>
+ 
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to