Hi Claus,
First of all i would like to thank you for your quick response. Secondly i
would like to ask you is that possible to execute the following code :
1) java
ApplicationContext context = new
ClassPathXmlApplicationContext("InvokeWithSpringOnly.xml");
CamelContext cc = (CamelContext)context.getBean("camel");
cc.start();
Thread.sleep(10000);
// stop the CamelContext
cc.stop();
2)Spring
<bean id="hello" class="camelinaction.HelloBean"/>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start"/>
<bean ref="hello"/>
<to uri="seda:bar?concurrentConsumers=5"/>
</route>
</camelContext>
whereby the hello bean is just some println. However i unable to get the
println in console. Besides this question, i would like to also is that
camelContext able to use in spring 3.0 ? because i was getting unable to
locate namespace camelContext even i include the path
(http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd) in
xsi:schemaLocation.
Thanks
Regards,
Cyril
--
View this message in context:
http://old.nabble.com/Manually-start-route-in-java-code-tp28175201p28188199.html
Sent from the Camel Development mailing list archive at Nabble.com.