Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85648181DE for ; Thu, 12 Nov 2015 16:02:38 +0000 (UTC) Received: (qmail 59614 invoked by uid 500); 12 Nov 2015 16:02:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 59560 invoked by uid 500); 12 Nov 2015 16:02:38 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 59549 invoked by uid 99); 12 Nov 2015 16:02:37 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 16:02:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 50862C0F3D for ; Thu, 12 Nov 2015 16:02:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.314 X-Spam-Level: * X-Spam-Status: No, score=1.314 tagged_above=-999 required=6.31 tests=[URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZuMLNBt9Ixbw for ; Thu, 12 Nov 2015 16:02:24 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 2E1462533C for ; Thu, 12 Nov 2015 16:02:24 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id B1E0D19E934A for ; Thu, 12 Nov 2015 07:50:44 -0800 (PST) Date: Thu, 12 Nov 2015 09:02:23 -0700 (MST) From: codan84 To: users@camel.apache.org Message-ID: <1447344143447-5773751.post@n5.nabble.com> In-Reply-To: References: <1447338902869-5773741.post@n5.nabble.com> <5644A63A.9030407@gmail.com> <1447341055021-5773747.post@n5.nabble.com> Subject: Re: Spring-Boot + Camel + producerTemplate ssh spawning thousands of threads MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have tried similar thing, but with sftp rather than ssh. Everything else is exactly the same: producerTemplate.sendBodyAndHeader( "sftp://_target_machine_url_?username=_username_" + "&privateKeyFile=" + sshKeyPath + "&knownHostsFile=" + knownHosts + "&preferredAuthentications=publickey", new ByteArrayInputStream(new String("Random junk").getBytes()), "CamelFileName", "/home/_username_/test_file.txt" ); And this works fine. So it is not the way I am using ProducerTemplate. It is a bug with ssh when using producer template, or "requestBody" method... -- View this message in context: http://camel.465427.n5.nabble.com/Spring-Boot-Camel-producerTemplate-ssh-spawning-thousands-of-threads-tp5773741p5773751.html Sent from the Camel - Users mailing list archive at Nabble.com.