title: Spring - jdbcTemplate
body: <p>I'm just beginning with Spring framework. I'm also using DBCP pooling and i'm still not sure how to work right with jdbcTemplate.</p>
  
  <p>It is best practice to reuse created/injected jdbcTemplate instance between multiple DAOs or it is right to create jdbcTemplate for each DAO ?</p>
  
  <p>I'm currently using annotation approach:</p>
  
  <pre><code>public class FooDAO  {
  
    private JdbcTemplate jdbcTemplate;
  
    @Autowired
    public void setDatasource( DataSource dataSource ) {
       this.jdbcTemplate = new JdbcTemplate( dataSource );
    }
  }
  </code></pre>
  
  <p>I'm aware about JdbcDaoSupport, but I don't know how to inject datasource, because method setDatasource is marked as final. </p>
  
  <p>But still, I'm not sure if is best practice to reuse created jdbcTemplate or not.</p>