Hi,

I am a newbie with Camel.

1. how does the routesBuilder work in IDS? simple "from" and "to in code of
course does not compile...

2. I have the following spring section:


        <bean id="compA" class="com.XXX.CompA">
        </bean>

        <bean id="compB" class="com.XXX.CompB">
        </bean>

        <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
                <camel:template id="camelTemplate" />
                <route>
                        <from uri="bean:compA" />
                        <to uri="bean:compB" />                 
                </route>
        </camelContext>


In My Main I do this:


                ApplicationContext context = new
ClassPathXmlApplicationContext("spring-camel-context.xml");
                ProducerTemplate producerTemplate =
(ProducerTemplate)context.getBean("camelTemplate");
                producerTemplate.sendBody("bean:compA", ExchangePattern.InOut, 
"message");


But I see it gets to compA but not to compB. what is the problem?

from logs looks like route is built ok:

Route 0: EventDrivenConsumerRoute[Endpoint[bean://compA] ->
Instrumentation:route[UnitOfWork(Channel[sendTo(Endpoint[bean://compB])])]]

Please advise.

Thanks.


-- 
View this message in context: 
http://old.nabble.com/newbie-help-tp26951866p26951866.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to