Reputation: 2572
Im using hibernate to connect to a oracle database in my application. When the password for the oracle DB is changed, and when the application keeps hitting the DB for connection with the expired password, the DB gets locked after 3 failed tries. Is there a way to disable reconnecting to the DB automatically from the application? like how we use for MySql autoReconnect=true
.
Upvotes: 0
Views: 583
Reputation: 4114
You have two different config file so you can use configuration for both config file
Upvotes: 0
Reputation: 4114
Into hibernate configuration file you can use following code .I think it will solve your problem
<property name="connection.autoReconnect"> false</property>
Upvotes: 1