code: public void setTimeout(int milliseconds)
    {
      if(ctx != null)
      {
        QueryDao dao = (QueryDao) ctx.getBean("queryDao");
        if(dao != null)
        {
          dao.setTimeout(milliseconds);
        }
      }
    }
docs: Set the timeout in milliseconds
  @param milliseconds Timeout if greater than zero, disabled timeout if less then zero.