public final static long DONE = 2L;
public final static long ERROR = 3L;
public static void writeMessage(String msg, String node, String nodes[]) {
if (nodes == null) return;
DBPool pool = DBPool.getPool();
DBConnection c = pool.getConnection();
try {
writeMessage(msg,node,nodes,c);
c.commit();
} catch (java.sql.SQLNonTransientConnectionException se) {
log.info("connection error in write. retrying in 30 sec: " + node);