String dumpId = "" + new Timestamp().getTimestamp();
sendEndOfTransitionMessage(info, session, null, null, dumpId, producer);
}
public void sendEndOfTransitionMessage(I_Info info, XBSession session, String initialFilesLocation, String shortFilename, String dumpId, XBMessageProducer producer) throws JMSException {
TextMessage endMsg = session.createTextMessage();
SqlInfo sqlInfo = new SqlInfo(info);
SqlDescription description = new SqlDescription(info);
description.setAttribute(END_OF_TRANSITION , "" + true);
endMsg.setBooleanProperty(END_OF_TRANSITION , true);
description.setAttribute(FILENAME_ATTR, shortFilename);
endMsg.setStringProperty(FILENAME_ATTR, shortFilename);
if (initialFilesLocation != null) {
description.setAttribute(INITIAL_FILES_LOCATION, initialFilesLocation);
endMsg.setStringProperty(INITIAL_FILES_LOCATION, initialFilesLocation);
description.setAttribute(INITIAL_DATA_ID, dumpId);
endMsg.setStringProperty(INITIAL_DATA_ID, dumpId);
}
sqlInfo.setDescription(description);
endMsg.setText(sqlInfo.toXml(""));
producer.send(endMsg);
}