Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring and DAO

 
Krishna Kumar P
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic