We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
// Rename the file with an appended .LOAD extension, so that next time
// this program will not pickup the same file again
String renameToFile = filename + ".load"; //filename is valid file name
File sourceFile = new File(filename);
if (sourceFile.renameTo(new File(renameToFile)))
//success, verify now
File destFile = new File(renameToFile);
boolean renamed = false;
while (TIMES_TO_RENAME_VERIFY-- > 0) //5 times
ME); //wait to confirm renaming 6000ms
renamed = true;
catch (InterruptedException ie)
log.exception("File rename wait exception ", ie);
log.info("Successfully renamed the file " + filename +
" to append .load at the end");
log.error("Failed to verify renamed file " + filename + ".load"); //this is the error I get
log.error("Unable to rename the file " + filename + " to append .load at the end");
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|hibernate example issues from command prompt||10||66|
|Why is enum singleton a better approach than static factory||3||52|
|ejb message driven bean mdb creation steps||2||37|