This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "spring jdbcTemplate connection" Watch "spring jdbcTemplate connection" New topic
Author

spring jdbcTemplate connection

ben oliver
Ranch Hand

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

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: 369
it inserts data. it uses all standard spring API.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: spring jdbcTemplate connection
 
Similar Threads
Is this really a batch update
How to Configure SSL over Database in Spring?
Using SPRING hibernate and JDBC templates in the same DAO
Problem deploying Spring 2.5 in JBoss 5.1
data source defined but not found..