Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring jdbcTemplate connection

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a code from internet sample


My question are ---

1. Using this implementation, every time when I do "update" by passing a record, does spring create a NEW database connection for me ? Or does it keep using the same one ?

2. Where and how can I configure this connection thing ?

 
Arun Kumarr
Ranch Hand
Posts: 661
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your update method in batchInsert do?
What code does it exactly have?
 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it inserts data. it uses all standard spring API.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic