Its going to be a newbie question, but I haven’t found any satisfying answer on the internet. I work with JDBC and db2. How do I know, when to reuse the connection (pass it as parameter in method), and when to open a new one? I know that the less connections opened the better, but I need to open a new one sometimes. How to tell, that I have to open a new one instead of reusing the previously opened?