title: DB transactionality in API exit
body: <p><a href="http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.amqzag.doc/fa20000_.htm" rel="nofollow">This link</a> states that the exit function can operate in the application's unit of work.</p>
  
  <p>Imagine the application starts a UOW:  </p>
  
  <ul>
  <li><code>MQPUT</code> a message to a queue  </li>
  <li>Insert a record in table T1 of a DB</li>
  </ul>
  
  <p>Also, we have a <code>Put_After</code> exit function that also inserts a record in table T2 of the same DB. </p>
  
  <p>As per the above link WebSphere MQ acting as a XA Transaction Manager, will treat the insertion into T1 and T2 as a single XA transaction. </p>
  
  <p>My question is, will DB2 treat the two insertions as a single transaction?</p>