This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Spring and the fly likes spring jdbcTemplate connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring jdbcTemplate connection" Watch "spring jdbcTemplate connection" New topic

spring jdbcTemplate connection

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
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

Joined: May 16, 2005
Posts: 661

What does your update method in batchInsert do?
What code does it exactly have?

If you are not laughing at yourself, then you just didn't get the joke.
ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
it inserts data. it uses all standard spring API.
I agree. Here's the link:
subject: spring jdbcTemplate connection
It's not a secret anymore!