You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by raheem <ra...@gmail.com> on 2012/08/22 04:50:32 UTC

Non-polling ssh

Hi,
Is it possible to have a non-polling ssh consumer?  What I am trying to do
is to setup a route such that an event is fired from a quartz scheduled
process that starts the route.  The route will then ssh to a server and run
an ls command on a directory to get a list of all the directories that need
to be pulled.  The output from the command is tokenized and each directory
is contained in a message that is put on a JMS queue.  Once the ssh command
is run, I need to stop polling the ssh server.  Any ideas?

I have the ssh->jms route, but I can't get it to stop.  I tries a
getContext().stop(), but that did not seem to work.

Thanks,
Raheem



--
View this message in context: http://camel.465427.n5.nabble.com/Non-polling-ssh-tp5717810.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Non-polling ssh

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The ssh component should support being a producer as well so you can do
http://camel.apache.org/ssh

from quartz
  to ssh
  split
     to jms



On Wed, Aug 22, 2012 at 4:50 AM, raheem <ra...@gmail.com> wrote:
> Hi,
> Is it possible to have a non-polling ssh consumer?  What I am trying to do
> is to setup a route such that an event is fired from a quartz scheduled
> process that starts the route.  The route will then ssh to a server and run
> an ls command on a directory to get a list of all the directories that need
> to be pulled.  The output from the command is tokenized and each directory
> is contained in a message that is put on a JMS queue.  Once the ssh command
> is run, I need to stop polling the ssh server.  Any ideas?
>
> I have the ssh->jms route, but I can't get it to stop.  I tries a
> getContext().stop(), but that did not seem to work.
>
> Thanks,
> Raheem
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Non-polling-ssh-tp5717810.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen