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/08/01 13:26:34 UTC

Remote Write and Read

Hi,

In the following code i am working with the files in my local machine. If i
want to read or write from remote machine or from some other node in the
network. What should i do. 

Eg: <to uri="activemq:queue:inputQueue"/> i want to write into the
inputqueue which is present with the ip 10.200.208.129

<?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> 


Help out

Cheers
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/Remote-Write-and-Read-tp4654796p4654796.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Remote Write and Read

Posted by Christian Müller <ch...@gmail.com>.
Hello Guru!

This is also a Camel related question which should be discussed on the Camel
user@ list.

Best,
Christian

Sent from a mobile device
Am 01.08.2011 13:27 schrieb "Gnanaguru S" <gn...@wipro.com>:
> Hi,
>
> In the following code i am working with the files in my local machine. If
i
> want to read or write from remote machine or from some other node in the
> network. What should i do.
>
> Eg: <to uri="activemq:queue:inputQueue"/> i want to write into the
> inputqueue which is present with the ip 10.200.208.129
>
> <?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>
>
>
> Help out
>
> Cheers
> Guru
>
> -----
> Cheers
> Guru
> --
> View this message in context:
http://servicemix.396122.n5.nabble.com/Remote-Write-and-Read-tp4654796p4654796.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.