Forums Register Login

Reconnect Tomcat with Microsoft SQL connection after restarting MSSQL using Hibernate/Spring

+Pie Number of slices to send: Send

I have tried by adding following way:-
1) <prop key="hibernate.autoReconnect">true</prop> where ID is hibernateProperties in applicationContext-DAO.xml
2) For changing the URL as jdbc:sqlserver://10.20.10.48:1433; autoReconnect=true.

But still not getting an exception com.microsoft.sqlserver.jdbc.SQLServerException: The connection is closed.
+Pie Number of slices to send: Send
Would this help you: c3p0 Configuring Connection Testing?
You can thank my dental hygienist for my untimely aliveness. So tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3502 times.
Similar Threads
javax.resource.ResourceException: enlist: caught Exception
unsatisfied Dependancy exception
Attempt to modify an identity column
problem with hibernate integration
Hibernate insert fails due to generate key failure
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:18:58.