camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From codan84 <daniel.gruszc...@live.com>
Subject Re: Spring-Boot + Camel + producerTemplate ssh spawning thousands of threads
Date Thu, 12 Nov 2015 16:02:23 GMT
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.

Mime
View raw message