What is the location of input folder w.r.t tomcat app ? Right now even if tracing is set to true, not much information is available in the logs about absolute path where component looks for file.
It will be nice to have CAMEL_WORKING_DIR or some parameter which conveys information from where camel is running. I looked around this information thru jconsole but could not get any help -Ravi ________________________________________ From: Christian Posta [christian.po...@gmail.com] Sent: Tuesday, December 10, 2013 6:11 AM To: users@camel.apache.org Subject: Re: File component problem on tomcat server are you seeing any exceptions in the log? related to permissions or something? additionally... maybe try a test with a absolute directory location instead of the relative location you're using... On Mon, Dec 9, 2013 at 2:46 PM, heriyanto <heriy...@gmail.com> wrote: > Hi everyone, > > I create a simple camel application that move file from folder "input" to > another folder "output". > I integrate apache camel with spring mvc and deploy the application into > tomcat server. > Here are the simple route : > > <route id="cashFlowStageDataRouter"> > <from uri="file:data/inbox?delay=1000" /> > <to uri="file:data/outbox"></to> > </route> > > When i start the tomcat server, i believe that the camel context already > started successfully, based on the log info : > INFO - DefaultCamelContext.doStartOrResumeRouteConsumers(2098) | Route: > cashFlowStageDataRouter started and consuming from: > Endpoint[file://data/inbox?delay=1000] > > but when i place new file into folder "input", nothing happen. File in the > folder "input" doesn't move or copy into "output" folder. > > when i call the route from JUnit using ProducerTemplate, file can move to > "output" folder successfully. > > does i miss something here...? > > Thank you, > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-component-problem-on-tomcat-server-tp5744519.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Christian Posta http://www.christianposta.com/blog twitter: @christianposta This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.