conn = ds.getConnection();
conn = getConnection();
   public void removeAllChannelData(long channelID) throws Exception   {      if (trace)      {         log.trace("removing all references for channel " + channelID);      }            Connection conn = null;      PreparedStatement ps = null;      TransactionWrapper wrap = new TransactionWrapper();      boolean success = false;            try      {         conn = ds.getConnection();                  ps = conn.prepareStatement(deleteChannelMessageRefs);                  ps.setLong(1, channelID);                  ps.executeUpdate();         success = true;      }      catch (Exception e)      {         wrap.exceptionOccurred();         throw e;      }      finally      {         if (trace)         {            String s = JDBCUtil.statementToString(deleteChannelMessageRefs, new Long(channelID));            log.trace(s + (success ? " successful" : "failed"));         }         if (ps != null)         {            try            {               ps.close();            }            catch (Throwable e)            {            }         }         if (conn != null)         {            try            {               conn.close();            }            catch (Throwable e)            {            }         }         wrap.end();      }   }