title: Setting global query timeout in hibernate
body: <p>How can i configure a default query timeout in application level. I am using spring , hibernate and db2 as a backend. Setting the timeout in datasource level is not an option as we are using an old version of IBM websphere. I tried configuring defaultTimeout in transaction manager but that is not helping. I don't want to integrate c3p0 connection pooling also. Is there any other options that hibernate provide for setting a global query timeout in application level , if yes how that is configured .</p>
  
  <p>Thanks in advance</p>