Package org.jboss.soa.esb.util

Examples of org.jboss.soa.esb.util.RemoteFileSystem.uploadFile()


    File fileToSend = null;
    RemoteFileSystem rfs = null;
    try {
      fileToSend = getFileToSend( message );
      rfs = RemoteFileSystemFactory.getRemoteFileSystem(getFtpEpr(), true);
      rfs.uploadFile(fileToSend, getFileName(message));
    } catch (RemoteFileSystemException e) {
      throw new NotificationException("Could not complete FTP notification", e);
    } catch (IOException e) {
      throw new NotificationException("Could not complete FTP notification", e);
    } finally {
View Full Code Here


      rfs = RemoteFileSystemFactory.getRemoteFileSystem(ftpEpr, true);
      rfs.setRemoteDir(FtpClientUtil.fileToFtpString(_inputDirectory));

      File tmpFile = File.createTempFile("RemoteGW", ".forUpload");
      super.bytesToFile(bytes, tmpFile);
      rfs.uploadFile(tmpFile, file.getName());
      tmpFile.delete();

    } catch (Exception e) {
      throw new GatewayException(e);
    } finally {
View Full Code Here

                {
                        String name = file.getName();
                        final RemoteFileSystem handler = getHandler() ;
                        try
                        {
                            handler.uploadFile(file, name);
                        }
                        finally
                        {
                            handler.quit();
                        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.