con = DbConnectionFactory.getConnection();
con.setAutoCommit(false);
java.sql.Timestamp timestamp = new java.sql.Timestamp(new java.util.Date().getTime());
for (String serversId : serversIds) {
if (!serverId.equals(serversId)) {
DotConnect dc = new DotConnect();
dc.setSQL("INSERT INTO dist_process(object_to_index, time_entered, serverid, journal_type)VALUES (?, ?, ?, ?)");
dc.addParam(key + ":" + group);
dc.addParam(timestamp);
dc.addParam(serversId);
dc.addParam(JOURNAL_TYPE_CACHE);
try {
dc.getResult(con);
} catch (Exception e) {
Logger
.warn(this,
"Usually not a problem but a cache entry failed to insert in the table.");
Logger.debug(this, e.getMessage(), e);