Hi Yeah as mentioned the file component must only have a starting directory
<from uri="file:activemq/input"/> If you want to limit to only pickup a specific file by its name, you can use filters such as include/exclude etc. See details at http://camel.apache.org/file2 Also a route should have at least 1 output so you should have something like <route> <from> INSERT SOMETHING HERE, to have at least 1 output </route> On Tue, Jul 5, 2011 at 11:47 AM, Gnanaguru S <gnanaguru.sattanat...@wipro.com> wrote: > > Hi > > I want to send a xml file into a queue... > > <?xml version="1.0" encoding="UTF-8"?> > <blueprint > xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> > > <camelContext xmlns="http://camel.apache.org/schema/blueprint"> > <route> > <from uri="file:activemq/input/input.xml"/> > <from uri="activemq://jjevents"/> > > </route> > > <route> > <from uri="activemq://jjevents"/> > <to uri="file:activemq/output/output.xml"/> > </route> > > </camelContext> > </blueprint> > > > i was not successful in sending this to queue..... > > Help me out. > > > Cheers Guru > > -- > View this message in context: > http://camel.465427.n5.nabble.com/XML-TO-Queue-tp4552704p4552704.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/