Meaningless Drivel is fun!*
The moose likes Spring and the fly likes using JDBCTemplate in Spring How to prove connection object has been closed ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "using JDBCTemplate in Spring How to prove connection object has been closed ?" Watch "using JDBCTemplate in Spring How to prove connection object has been closed ?" New topic
Author

using JDBCTemplate in Spring How to prove connection object has been closed ?

Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
using JDBCTemplate in Spring How to prove connection object has been closed ?

while using JdbcTemplate connection get open & close immediately. but how we should come to know that connection get close.
is there any way to proove it ?


SCJP 6 (88%), SCWCD 5 (78%), preparing for SCBCD
Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
please reply.. its urgent
Rendi Artha
Greenhorn

Joined: Jan 20, 2010
Posts: 29
Saurabh Naik wrote:please reply.. its urgent

what exactly you want to do? web based or desktop based app? is it on transaction session or not?
Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
its a web based app and not on transaction session ..
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

You can always download the source code for Spring and look at the method in the JdbcTemplate that you are calling.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
wood burning stoves
 
subject: using JDBCTemplate in Spring How to prove connection object has been closed ?