Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Hemant Pekhale
Thanks for the replies guys. Actually processing of files is realtime and there is one more process other than vb script which creates files in source folder so not feasible with done filename. Need to try with file consumer options only. On Mon, Aug 6, 2018 at 9:10 PM, Trilok Agarwal wrote:

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Trilok Agarwal
You can make the processes mutually exclusive through setting up a scheduler by giving a cron expression so that your FTP or File component would not read files when they are being written, just in case if processing of your file not real time and copying of file via VB script is also scheduled.

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
Also you can use "done" files, eg in the VB script you write a 2nd empty file with a special name, that tells Camel that the other file is done being copied and ready. There is some options on Camel file endpoint you can configure for that also. On Mon, Aug 6, 2018 at 3:54 PM, Claus Ibsen wrote:

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
Hi You can configure Camel to only pickup files with a certain file pattern, or to exclude names with temporary names, etc. There is a number of different filter options, see its doc. On Mon, Aug 6, 2018 at 3:52 PM, Hemant Pekhale wrote: > Hi Claus, > > Thanks for the reply. > > Yes, I am able

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Hemant Pekhale
Hi Claus, Thanks for the reply. Yes, I am able to modify the script. But if we do copy the file with temporary name and then rename, I doubt that there may be lock acquired on temporary file name already. because my route has no waiting parameter. So I think it might not be helpful for our case.

Re: Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread Claus Ibsen
On Mon, Aug 6, 2018 at 3:40 PM, RavinderReddy k wrote: > Simple solution is use logback.xml file include in your spring boot > application that's all. > Yeah SB uses logback as the logger impl by default. > On Mon, Aug 6, 2018, 9:37 AM Claus Ibsen wrote: > >> Hi >> >> Its probably more of a

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
Hi Are you able to modify the VB script so it copies the file using a temporary name and then rename the file when the copy is done. It sounds a bit like the problem is that the VB script is currently still copying the file, while Camel gets a lock on the file, and attempt to process it. File

Re: Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread RavinderReddy k
Simple solution is use logback.xml file include in your spring boot application that's all. On Mon, Aug 6, 2018, 9:37 AM Claus Ibsen wrote: > Hi > > Its probably more of a Spring Boot question how to configure its logging. > I suggest to study their documentation. > > Camel uses the slf4j-api

Re: Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread Claus Ibsen
Hi Its probably more of a Spring Boot question how to configure its logging. I suggest to study their documentation. Camel uses the slf4j-api and that ought to work fine with SB. On Mon, Aug 6, 2018 at 2:33 PM, Ranabroto Ghosh wrote: > Hi > I have a Spring-boot application with Apache Camel.

Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Hemant Pekhale
Hi All, I have a route which picks files from a folder and do some processing on it and store it in other folder. I have used parameter "delete=true" for deleting file from source folder. Sometime it happens that files are stuck in the source folder and camel lock files are also created for all

Problem with camel route with sql endpoint and jpa

2018-08-06 Thread Manish.Shukla
I have an Order and it has two type of todo tasks. There is as table where new todo entries are inserted. Camel route read todo entries and process it and with help of jpa(hibernate) and processing result is stored in database and todo entries are also deleted. This looks working in general

Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread Ranabroto Ghosh
Hi I have a Spring-boot application with Apache Camel. All I am trying to achieve here writing all logs(java log and also camel route level logs using camel 'log' EIP) in a log file using log4j. *My POM: * org.springframework.boot spring-boot-starter-web