You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by chaituu <ya...@gmail.com> on 2015/05/11 12:53:28 UTC

how to mention tomcat web-classes class path in file consumer route

I have deployed the war file in the tomcat .
camel-config.xml file is deployed in the WEB-INF/classes folder i.e class
path and test.xml also in the class path.

how to mention class path in file consumer route without mentioning absolute
path.


<route id="1">
      <from uri="file:./classpath?noop=true&amp;fileName=test.xml"/>
	  <unmarshal ref="myJaxb"/>
      <process ref="xmlprocess"/>
    </route> 



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-mention-tomcat-web-classes-class-path-in-file-consumer-route-tp5766969.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to mention tomcat web-classes class path in file consumer route

Posted by chaituu <ya...@gmail.com>.
to overcome this,i have done like this..

	<route id="1">
      <from uri="timer://myTimer?repeatCount=1"/>
      <to uri="language:constant:resource:classpath:HotFolderConf.xml"/>
	  <unmarshal ref="myJaxb"/>
      <process ref="xmlprocess"/>
    </route> 



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-mention-tomcat-web-classes-class-path-in-file-consumer-route-tp5766969p5766975.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to mention tomcat web-classes class path in file consumer route

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The file component cannot load from the classpath, it loads from the
regular file system.


On Mon, May 11, 2015 at 12:53 PM, chaituu <ya...@gmail.com> wrote:
> I have deployed the war file in the tomcat .
> camel-config.xml file is deployed in the WEB-INF/classes folder i.e class
> path and test.xml also in the class path.
>
> how to mention class path in file consumer route without mentioning absolute
> path.
>
>
> <route id="1">
>       <from uri="file:./classpath?noop=true&amp;fileName=test.xml"/>
>           <unmarshal ref="myJaxb"/>
>       <process ref="xmlprocess"/>
>     </route>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-mention-tomcat-web-classes-class-path-in-file-consumer-route-tp5766969.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@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/