Forums Register Login

c3P0 and Hibernate

+Pie Number of slices to send: Send
I am trying to test if the if the database connection is connected.

I closed it in hibernate using session.close().

In the hibernate.cfg.xml, I set the acquireRetryAttempts value = 5.

I placed my session.close() before a select on a database table.

Will the select be retried 5 times?

Thanks.
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 557 times.
Similar Threads
"Connection reset" messages after opening new Hibernate session
Hibernate, ResultSet and PrepareStatement
how to give the real connection back to the pool
Deleted objects are showing until next restarting of application
Is open/close hibernate session in every business logic a good design?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:05:46.