2nd called camel-ssh producer does not update the "CamelSshExitValue" header value
Issue
The camel-ssh producer is called several times in the route, but the "CamelSshExitValue" header value is not updated.
from("direct:start")
// 1st try (expected: ExitValue=1)
.setBody().simple("exit 1")
.to("ssh:localhost:2222")
.log("1st try: ExitValue=${header.CamelSshExitValue}")
// 2nd try (expected: ExitValue=2)
.setBody().simple("exit 2")
.to("ssh:localhost:2222")
.log("2nd try: ExitValue=${header.CamelSshExitValue}")
log
1st try: ExitValue=1
2nd try: ExitValue=2
Environment
- Red Hat Build of Apache Camel
- 4.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.