hi all, I have a question about close the datasource, as we know that if you don't close the connection, will cause big error. But who could tell me that if I forget close the datasource, what will happen? do harm to my application for the database server? thanks
It won't harm the database server, but it will likely cause a resource leak. Calling close() returns the connection to the pool. If you skip the call, the pool doesn't know it can give that connection to others until the connection times out.