Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Abandoned
-
2.24.2
-
None
-
None
-
Unknown
Description
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.