title: Opening and closing DB connection when using multiple threads
body: <p>I am updating my db from a couple of threads and am not sure where exactly to close the connection from. I am using Java JDBC. </p>
  
  <pre><code>Thread t= new Thread(new Runnable() {
          @Override
          public void run() {
              SwitchHandler shandler = new  SwitchHandler (da);
              shandler.portOverSubscriber(routingWrapper);
              CloseConnection();
          }
      });t.start();
  </code></pre>