Hello,

If I remember correctly you should use forward slashes '/' in the path
when using the file component to access a UNC path on a windows
network.
But I could be wrong. I do not have any windows machines available to test.
Also when using the file component camel will access the share as the
user running the camel process.

An alternative is to use the camel-jcifs component from camel-extras
(http://camel.apache.org/jcifs.html) where you can define a different
user.

// Pontus


On Mon, Jun 16, 2014 at 8:53 AM, sakchakravarthi
<ajit.kalyan.chakravar...@gmail.com> wrote:
> Hi I configured my route as bellow
>
> <camel:route>
>                         <camel:from 
> uri="file:{{config.fileloc}}?fileName={{filename}}.txt"/>
>                         <to uri="activemq:queue:{{activemq.outqueue}}" />
> </camel:route>
>
> filename=DataMoveCommand
> config.fileloc = \\Server\\FileLoc
>
> I mapped shared location \\Remote_Server\\FileLoc as network drive
>  when I bring my camel context up in logs found like as bellow
>
> Route: route18 started and consuming from:
> Endpoint[file://%5CRemote_Server%5CFileLoc?fileName=DataMoveCommand.txt]
>
> Could anyone help me on this.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-configuration-to-pick-up-file-from-Shared-location-and-remote-file-location-tp5752233p5752326.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to