155156157158159160161162163164165
while(it.hasNext()) { entry = (WeblogEntry) it.next(); // update status to PUBLISHED and save entry.setStatus(WeblogEntry.PUBLISHED); wMgr.saveWeblogEntry(entry); } // commit the changes WebloggerFactory.getWeblogger().flush();