aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 513

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: spring jdbcTemplate connection