title: increase timeout for springFramework transactionTemplate execute
body: <p>I have a web application which is run in WebSphere, thus there is a timeout value of 120 seconds configure in <code>Total transaction lifetime timeout</code> at <code>Servers --&gt; WebSphere application servers --&gt; myServerName --&gt; Container Services --&gt; Transaction Service.</code></p>
  
  <p>So, if there is a transaction taking more than 120 seconds to response, it will hit time out exception.</p>
  
  <p>Now I would to increase a timeout value for a specific transaction which is execute by <code>Spring framework transactionTemplate</code>, the code is something as follow:</p>
  
  <pre><code>transactionTemplate.execute( new TransactionCallbackWithoutResult( ) {
  
                          @Override
                          protected void doInTransactionWithoutResult(
                                  TransactionStatus status) {
                              try {
                                  // do something here that is no integration 
                                  //to database
                              } catch ( BaseException e ) {
                                  logger.error(
                                          "hit error ",
                                          e );
                                  status.setRollbackOnly( );
                              }
                          }
                      } );
  </code></pre>
  
  <p>I would like to increase this transaction timeout to 300 seconds, because its taking more time to run, sometimes its exceed 120 seconds. </p>
  
  <p>Any way to do on this? Is there any configuration or any method of this <code>transactionTemplate</code> to call to increase its timeout period? For example, like <code>.setTimeOut(300000);</code></p>