Hi,
I am connecting to a remote SQL database, and I followed the tutorial: https://www.b4x.com/android/forum/threads/sql-tutorial.35185/#content
I have everything working, but is there a way to detect if the connection drops from the remote database?
I will be reading and writing to the database all the time, and want to detect if the connection drops so I can reconnect to it before sending the SQL query to database.
I understand that there is now jRDC2 but I now have everything working as per the above link, and won't want to change much code but will look at jRDC2 at a later time. Just want to know if there is a way to detect if the connection has dropped or not when using JBDC.
I am connecting to a remote SQL database, and I followed the tutorial: https://www.b4x.com/android/forum/threads/sql-tutorial.35185/#content
I have everything working, but is there a way to detect if the connection drops from the remote database?
I will be reading and writing to the database all the time, and want to detect if the connection drops so I can reconnect to it before sending the SQL query to database.
I understand that there is now jRDC2 but I now have everything working as per the above link, and won't want to change much code but will look at jRDC2 at a later time. Just want to know if there is a way to detect if the connection has dropped or not when using JBDC.