You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gnanaguru S <gn...@wipro.com> on 2011/07/05 11:47:01 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
-----
Cheers
Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/XML-To-Queue-tp4552703p4552703.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: XML To Queue
Posted by Gnanaguru S <gn...@wipro.com>.
Hi
Now i got it work with the following code, Thanks a lot.
CODE:
<?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"
trace="true">
<route>
<from uri="file://inputdir/"/>
<to uri="activemq:queue:inputQueue"/>
</route>
<route>
<from uri="activemq:queue:inputQueue"/>
<to
uri="xslt:file:C:\ESB\Fuse_ESB_4.4\apache-servicemix-4.4.0-fuse-00-27\design.xsl"/>
<to uri="activemq:queue:outputQueue"/>
</route>
<route>
<from uri="activemq:queue:outputQueue"/>
<to uri="file://outputdir/"/>
</route>
</camelContext>
</blueprint>
Cheers
Guru
-----
Cheers
Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/XML-To-Queue-tp4552703p4553136.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: XML To Queue
Posted by Charles Moulliard <cm...@gmail.com>.
Hi Guru,
FYI : the file2 component of camel is defined here :
http://camel.apache.org/file2.html
If you have issue with your camel routes, please add trace="true" as
attribute in the <camelContext/> definition and check what is reported
in the trace.
Question : Have you configured ActiveMQ component with
connectionFactory to work with your camel route -
http://camel.apache.org/activemq.html ?
Regards,
Charles Moulliard
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
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
>
> -----
> Cheers
> Guru
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/XML-To-Queue-tp4552703p4552703.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>