Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11792

New ftp connection for each file transfer with tempFileName option in URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.0, 2.19.2
    • 2.20.2, 2.21.0
    • camel-ftp
    • None
    • Unknown

    Description

      When we have tempFilename in camel uri and we use producer template to write file to remote ftp location , camel opens new connection for every file transfer. Though disconnect option is set to false in uri.
      If we take out tempFilename from uri connections are reused

      We can verify it by running attached sample.
      Check the connections made from camel server to ftp server . Fire {{netstat -an|grep 10.80.14.56|wc -l]]

      • When we have tempFileName in uri it will show 1 connection per file transfer
      • Without tempFileName it will show only 1 connection for all files transfer.

      Attachments

        1. TestFTPConnection.java
          1 kB
          Himanshu Mittal

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              himanshu Himanshu Mittal
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: