Find a way to establish and maintain a connection to the mysql server without leaving connections open. This will also help to ensure a new session isn't created when it shouldn't be. This can be done using a connection pool or with a try-catch-finally block.
Find a way to establish and maintain a connection to the mysql server without leaving connections open. This will also help to ensure a new session isn't created when it shouldn't be. This can be done using a connection pool or with a try-catch-finally block.
MySQL Connection Pooling:
Try Catch Finally: