Connection won't restore when database going down and up again
Database SQL, query tool, using JDBC for Oracle,SQLite,PostgreSQL,etc
Status: Abandoned
Brought to you by:
akaluza
Connection won't works
The connection reopen automatically because actually I need open a new connection and recover the last status, it takes a time and I work with hsqldb testing a framework so every time I run the application test, a new hsqldb instance is up and I need to open a new connection on orbada
Anonymous
Hi,
Orbada is a universal tool. JDBC does not return clear information about the connection has been closed and the supported databases are many, and each would have to approach individually.
Have you tried in the "Connection" menu use the "Reconnect"?
Andrzej
Hey Andrzej, yes I did, not works the issue is the same. Is true that JDBC does not return a clear information, any way I had implemented a solution on this build that works for me at least .
By the way Andrzej in this project that I have created, I implement your project with gradle, when you run
gradle clean buildit will generate the release zip at buid/libs/. I had imported and tested it on Intellij 15
I am not sure how you build your tool but if have not a standalone build tool I will apreciate if you consider to use my suggestion
Thanks advice
Obs: is possible that My code version is not the right and that some changes that I've did not pleases you, of course you can put the source version that you want, in the structure that you want, my version is only a fork
My gradle version
Update
Reconnect works on mysql but not on HSQLDB
My solution reconnect automatically(not need to click on "Connection" > "Reconnect"), tested on MySQL, PostGres, HSQLDB
Last edit: Mageddo 2016-05-28