You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by wave <27...@qq.com> on 2016/08/04 10:23:40 UTC

camel router manage

Hi all,

I wan to start the below second router after the first router batch file all
transform finished.

anyone knows how to implement that?  
  <route >
        <from uri="file:..\dir1"/>
		<to uri="sftp://user@ip/dir?password=xxxxx"/>
      </route>
	  
      <route >
        <from uri="file:..\dir2"/>
		<to uri="sftp://user@ip/dir?password=xxxxx"/>
      </route>



--
View this message in context: http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel router manage

Posted by wave <27...@qq.com>.
could you give a example? I have no idea.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024p5786342.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel router manage

Posted by Claus Ibsen <cl...@gmail.com>.
That would be the same, java and xml dsl is the same for endpoint uris
and their options.

On Wed, Aug 10, 2016 at 5:43 AM, wave <27...@qq.com> wrote:
> Hi,
>
> do you know how to use the control bus in the Spring XML Extensions?
> I have found the example , but it is an java code.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024p5786220.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Re: camel router manage

Posted by wave <27...@qq.com>.
Hi,

do you know how to use the control bus in the Spring XML Extensions? 
I have found the example , but it is an java code.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024p5786220.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel router manage

Posted by Claus Ibsen <cl...@gmail.com>.
See control bus
http://camel.apache.org/controlbus.html

And then you can check the header if the batch is complet and then use
the control bus to start the 2nd route.
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#BATCH_COMPLETE

On Thu, Aug 4, 2016 at 12:23 PM, wave <27...@qq.com> wrote:
> Hi all,
>
> I wan to start the below second router after the first router batch file all
> transform finished.
>
> anyone knows how to implement that?
>   <route >
>         <from uri="file:..\dir1"/>
>                 <to uri="sftp://user@ip/dir?password=xxxxx"/>
>       </route>
>
>       <route >
>         <from uri="file:..\dir2"/>
>                 <to uri="sftp://user@ip/dir?password=xxxxx"/>
>       </route>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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