You got a few issues mixed up. from A -> B will let Camel create a polling consumer and invoke A all the time.
What you are looking for is some queue like functionally where you can send a message to that queue and then have it routed. http://camel.apache.org/seda.html So try using: from("seda:start").to("bean:beanB"); And then send a message to seda:start using the producer template. Or use both beans from("seda:start").to("bean:beanA").to("bean:beanB"); On Tue, Dec 29, 2009 at 11:56 AM, yaog <yairo...@gmail.com> wrote: > > It does not. > > This is the code in compA. I see the system out: > > public String start2(String from){ > String message = "in compA from: \"" + from + "\""; > System.out.println(message); > return message; > } > > This is the code in compB. I do not see the system out: > > public String start(String from){ > String message = "in compB from: " + from; > System.out.println(message); > return message; > } > > Obviously I am doing something wrong, but even this simple case does not > work for me. I assume the creation of message/exchange between A and B > should be done by Camel, right? > -- > View this message in context: > http://old.nabble.com/newbie-help-tp26951866p26953226.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus