title: Spring Transactional TimeOut
body: <p>I am trying to use spring <code>@Transactional</code> annotation and <code>timeout</code> parameter. I basically test the code with put some <code>Thread.sleep()</code> codes. Then i get timeout exception as i expected. Also i want to get timeout exception when database operations take longer than my timeout period. I lock a record in a table in my database with for update select statement. I try to update that record. But program wait and do nothing. Here my sample code.</p>
  
  <pre><code>@Transactional(rollbackFor = Exception.class, timeout=5)
  public void executeService(List&lt;sendData&gt; list) throws Exception{
      List&lt;sendData&gt; newList = gDAO.updateSentList(list);
  
  } 
  </code></pre>
  
  <p>In this case the program should throw timeout exception. How can i fix it?</p>