I would suggest you look at the Camel Mock page: http://camel.apache.org/mock.html
try something like: <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="seda:start"/> <to uri="mock:result"/> </route> </camelContext> from: http://camel.apache.org/spring.html Basically, you created a direct starting point, but that goes nowhere. By adding a mock, the mock will now consume the messages from the seda:start, then you can measure and test if the mock gets what you expect. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Fri, Sep 4, 2009 at 7:18 PM, Chris Audley <chris.aud...@beacon-cs.com>wrote: > I'm trying to setup a simple test route so I can start testing some > Processors I've written. > > In spring, I create a very simple context > > <camelContext id="camel" > xmlns="http://camel.apache.org/schema/spring"> > <route> > <from uri="direct:testing"/> > </route> > </camelContext> > > I inject this context into another bean and later that bean runs some > code to send a message to the route > > ProducerTemplate template = > camelContext.createProducerTemplate(); > tempate.sendBody("direct:testing", "testing"); > > When I run the sendBody line, I get this message in the log > > Sep 4, 2009 10:11:56 PM org.apache.camel.component.direct.DirectProducer > process > WARNING: No consumers available on endpoint: Endpoint[direct://testing] > to process: Exchange[Message: [...@de8aa5] > > I'm using Camel 2.0.0 with Spring 2.5.6. I resorted to this test setup > because I wasn't getting anywhere with uri="file:..." based routes. > What the hell am I missing? I can't believe something this simple > doesn't work. >