public void fdo_close(ServletOutputStream sos) throws Exception { if (acquired) { acquired = false; try { dbm.release(plugin, sos); } catch (Exception e) { Frontier.Log("Error releasing DB connection " + e); throw e; } } }
private void acquireConnectionIfNeeded(ServletOutputStream sos) throws Exception { if (!acquired) { dbm.acquire(plugin, sos); acquired = true; } }