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/13 08:08:39 UTC
Camel snippet query
Hi,
I coded a simple xml transformation using camel-blueprint feature. i was
successfully able to run it also. but i was not clear with certain things.
My 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?fileName=output.xml" />
</route>
</camelContext>
</blueprint>
what this <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"> code sayand
actually what it does ?. what if there is no internet. will it go for
internet ?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-snippet-query-tp4581649p4581649.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel snippet query
Posted by Willem Jiang <wi...@gmail.com>.
On 7/13/11 2:08 PM, Gnanaguru S wrote:
>
> Hi,
>
> I coded a simple xml transformation using camel-blueprint feature. i was
> successfully able to run it also. but i was not clear with certain things.
>
> My 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?fileName=output.xml" />
> </route>
> </camelContext>
> </blueprint>
>
> what this<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"> code sayand
> actually what it does ?. what if there is no internet. will it go for
> internet ?
>
If you take a look at the
"http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd", you will
find the schema has the definition like the bean.xsd of Spring.
There is a copy of blueprint.xsd in the
org.apache.aries.blueprint-0.3.jar. So you do not need to worry about
that the blueprint impl need to load the schema from the internet.
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-snippet-query-tp4581649p4581649.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang