If you want to fire a message automatically then used a timer, otherwise create a junit test that load camel context and send message to your start endpoint. to have more details in Camel Testing, please visit this link http://camel.apache.org/testing.html
2011/5/21 Tim <[email protected]> > Direct routes do not automatically fire. I suggest that you use a timer if > you want it to start automatically or a proxy to the direct > On May 20, 2011 2:56 PM, "Kobe" <[email protected]> wrote: > > thank for your help. I begin the route with "direct:start" and add the > bean > > as the > > second step as below. I still not get any output; target file > > /tmp/data/outbox/data.txt > > is not created. > > > > how I can debug this problem? I notice with debugger that bean > > srcText::sayTest > > is not even called. > > > > > > <camel:camelContext id="camelContext"> > > <camel:route> > > <camel:from uri="direct:start" /> > > <camel:bean ref="srcText" method="sayTest"/> > > <camel:to uri="jms:queue:order" /> > > </camel:route> > > <camel:route> > > <camel:from uri="jms:queue:order" /> > > <camel:pipeline> > > <camel:transform> > > <camel:simple>Hello ${body} how are you?</camel:simple> > > </camel:transform> > > <camel:to uri="file:/tmp/data/outbox?fileName=data.txt" /> > > </camel:pipeline> > > </camel:route> > > > > > > thank > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/Simple-route-with-JMS-queue-is-not-working-tp4411810p4413428.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >
