title: DB2 deadlock timeout Sqlstate: 40001, reason code 68 due to update statements called from servlet using SQL
body: <p>I am calling update statements one after the other from a servlet to DB2.  I am getting error sqlstate 40001, reason code 68 which i found it is due to deadlock timeout.</p>
  
  <ul>
  <li>How can I resolve this issue?</li>
  <li>Can it be resolved by setting query timeout?</li>
  <li>If yes then how to use it with update statements in servlet or where to use it?</li>
  </ul>