Treat link drop with Hibernate JPA timeout database

1

I need to treat link crash of the application with the database in addition to keeping a low timeOut, since the default in my tests is 15 seconds.

  

Failure: Caused by: org.hibernate.exception.JDBCConnectionException:   Error calling Driver # connect

I've already tried the property

<property name="hibernate.connection.timeout" value="1"/> 

but I did not succeed.

  

INFO: HHH000046: Connection properties: {user = ****, password = ****,   timeout = 1}

What is the correct property or how to work around this problem?

    
asked by anonymous 26.04.2018 / 00:29

0 answers