Hi What JDK, OS and runtime container are you using? And what Camel version?
I just tried on Camel 2.5 in an unit test and I can set the default endpoint <camelContext xmlns="http://camel.apache.org/schema/spring"> <template id="camelTemplate" defaultEndpoint="log:foo"/> </camelContext> @Autowired protected ProducerTemplate template; template.sendBody(body); On Mon, Nov 15, 2010 at 10:04 PM, serega <[email protected]> wrote: > > Hi. > I've tried examples from here > http://camel.apache.org/spring-testing.html > > Two questions: > 1. is how do I specify the producer template in spring? > I've tried the following line > <template id="test" defaultEndpoint="direct:start"/> > I got org.apache.camel.NoSuchEndpointException: No endpoint could be found > for: ref:direct:start > > 2. How to I write the following > > @Produce(uri = "direct:start") > protected ProducerTemplate template; > > without annotations? > > Thanks, > > Sergey. > -- > View this message in context: > http://camel.465427.n5.nabble.com/ProducerTemplate-with-Spring-and-without-tp3266469p3266469.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
