AnsweredAssumed Answered

How to delete file after import

Question asked by wwatroba on Apr 21, 2008
Latest reply on Jan 20, 2010 by pjanuario
Hello,
I'm trying to import files, using following code:

         RetryingTransactionCallback<Void> callback = new RetryingTransactionCallback<Void>() {
            public Void execute() throws Throwable {
               
               ImporterService importerService = serviceRegistry.getImporterService();
               
               ACPImportPackageHandler handler = new ACPImportPackageHandler(new File("path/file.acp"),
                     ACPImportPackageHandler.DEFAULT_ENCODING);
               importerService.importView(handler, location, null, null);
               
               return null;
            }
         };
         
         retryingTransactionHelper.doInTransaction(callback, false);
but after it, I can't delete file (path/file.acp). What I'm doing wrong? It looks like there is a problem with closing stream.

Outcomes