You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gnanaguru S <gn...@wipro.com> on 2011/07/05 11:47:12 UTC
XML TO Queue
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.
Re: XML TO Queue
Posted by Claus Ibsen <cl...@gmail.com>.
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
<gn...@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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: XML TO Queue
Posted by Andrè <mo...@web.de>.
http://camel.apache.org/file2.html
says that that the pattern for the file component is like that
file:directoryName[?options]
where directoryName is a directory and not a explicit file path
(if you take the fuse ide plugin and create a new project, there will be an
example where the file component is used)
--
View this message in context: http://camel.465427.n5.nabble.com/XML-TO-Queue-tp4552704p4552783.html
Sent from the Camel - Users mailing list archive at Nabble.com.