/** * Sends the whole content of the file to be duplicated. * * @throws HornetQException * @throws Exception */ public void syncJournalFile(JournalFile jf, JournalContent content) throws Exception { if (!enabled) { return; } SequentialFile file = jf.getFile().cloneFile(); try { HornetQServerLogger.LOGGER.journalSynch(jf, file.size(), file); sendLargeFile(content, null, jf.getFileID(), file, Long.MAX_VALUE); } finally { if (file.isOpen()) file.close(); } }