camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mister blinky <>
Subject Using from("direct:...) to initiate file download -- how to prevent subsequent from()s in the from auto-launching?
Date Mon, 03 Feb 2014 19:57:48 GMT
Here's a simplified flow. When the from("direct:...") gets invoked, it
executes a remote shell script. I ONLY want the ssh script invoked when
direct:invokeScript is invoked. However, when I start the camelContext, the
from("ssh:...) gets invoked. If the camelContext includes a jetty component
(i.e., one that keeps alive), then the from("ssh:...) gets invoked over and
over and over. 

		.from("ssh://user:pwd@myurl:22?delay=1000000&pollCommand=" + shellCommand)

So question 1 is: how do i write this simple flow so that from("ssh:...) is
ONLY invoked when the from("direct:invokeScript") gets invoked?

Here's another (simplified) flow that has the same problem. 



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message