On Sun, Oct 13, 2019 at 1:37 PM David Ecker <[email protected]> wrote:
>
> Hi,
>
> Problem:
> Each remote command (polling, camel-ssh) creates a log entry
> (Login/Logout on the remote managed device) polluting the log and
> creating a load on managed devices.
>
> Reason:
> In camel version 2.24.2 the ssh components uses a static method which
> connects and disconnects with each request/command => No persistent
> connection possible
>
> Request:
> Leave the default behavior as is. Add a new option "persistent" to the
> component which will persist the connection but will create and drop the
> ssh command channel with each command only. Only recreate the connection
> if host/login or password changes. Pass back an exception if a
> connection is lost to let the route handle that case.
>
> What do you think of that?
>

Sounds good, however then if there is some connectivity issues then
either you would need to add logic for re-connection, or have it
re-establish a broken connection before each operation (if the
connection is not properly working).

But surely you are welcome to create a JIRA ticket and if you want
then you are very welcome to try to implement this.
We love contributions
https://github.com/apache/camel/blob/master/CONTRIBUTING.md

> bye
> David Ecker
>
>
>
>
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to