File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spring and DAO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring and DAO " Watch "Spring and DAO " New topic
Author

Spring and DAO

Krishna Kumar P
Greenhorn

Joined: Aug 10, 2006
Posts: 4
Hi
i am developing a web application with Struts + Spring
i am inserting my dao(using IOC) into my delegate class, it works fine initially without any problem, but when the application is not used for couple of days(but left running in UAT) and then when i do something i get an "Connection you are trying to use is already been closed" exception, i am using ms-sql server
cn someone please help me on why this is happening.
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

As the message said, your connection has already been closed.

How do you use your connection? How do you get them? How do you close them?
Do you use connection pooling? Do you get them from DataSource?

Can't help you without knowing more details on how your application is implemented.
Krishna Kumar P
Greenhorn

Joined: Aug 10, 2006
Posts: 4
i use connection pooling
i am loading it from context file....
i have a basedao class.... which has the connection.... all my dao's extend this basedao....
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"Kirshna"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: Spring and DAO
 
Similar Threads
JTA Transaction
Collection
Unable to view list in drop down menu - JSTL
Business Logic
Hibernate/Spring DAO: store data in a table