Hi

Is metamodel/gris a directory in the classpath?

The file component is not for reading resources in the classpath. The
file path should be a system file path, that java.io.File would be
able to read.

On Mon, Apr 21, 2014 at 2:26 PM, sbalabadra <sbalaba...@gmail.com> wrote:
> Hi Team,
>
> In our project we are using camel file component to read the files.
>
> We have created spring mvc project. Under resource folder, i have created
> metamodel/grids folder.
> In this folder i have pasted all my files.
>
> below is the camel endpoint configuration.
>
> <camel:endpoint id="homeMetaModel"
> uri="file:${MetaModelScreenEndPointURI}&amp;fileName=home.json" />
>
> Here MetaModelScreenEndPointURI=medamodel/grids/?noop=true&idempotent=false
>
> When i am trying to access this endpoint using cosumber, i am getting file
> not found error message.
>
> Could you please help me on this?
>
> Thanks,
> Sada.B
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Reading-a-File-Using-camel-is-not-working-with-relative-path-tp5750395.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to