String sqlTopic = getStringAttribute(SQL_TOPIC_ATTR, null, description);
HashMap map = new HashMap();
map.put(STATEMENT_ID_ATTR, statementId);
if (ex != null)
map.put(ReplicationConstants.EXCEPTION_ATTR, ex.getMessage());
momEngine.publish(sqlTopic, response, map);
}
else
log.info("statement '" + sql + "' resulted in response '" + new String(response));
if (ex != null) // now that we notified the server we can throw the exception
throw ex;