Keep database connection alive
I'm developing a windows desktop (standalone) application which runs as an endless loop.
Once the application started, a database connection is created (java.sql.Connection) and from now on used to read data from the database.
Connection is created like this:
Connection con = DriverManager.getConnection(connectionUrl);
Does the connection will be kept alive forever?
If NOT, what to change in my program?