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.
Thread t= new Thread(new Runnable() {
@Override
public void run() {
SwitchHandler shandler = new SwitchHandler (da);
shandler.portOverSubscriber(routingWrapper);
CloseConnection();
}
});t.start();