This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 374
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: 374
it inserts data. it uses all standard spring API.
I agree. Here's the link:
subject: spring jdbcTemplate connection
Similar Threads
Is this really a batch update
Using SPRING hibernate and JDBC templates in the same DAO
How to Configure SSL over Database in Spring?
data source defined but not found..
Problem deploying Spring 2.5 in JBoss 5.1