Announcement Announcement Module
Collapse
No announcement yet.
A query on JDBCTemplate? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A query on JDBCTemplate?

    Code:
    Connection l_con = .......
    ......
    ......
    l_con.close(); //It releases the resource.
    Now have a look at this code ....
    Code:
    DataSource ds = Third Party Data Source .....
    JDBCTemplate jdbc = new JDBCTemplate(ds);
    In second code how can i release the resource ?

  • #2
    You don't, it will be closed for you, at the end of every jdbcTemplate method or at the end of the transaction if there is one.

    Comment

    Working...
    X