Re: Query regarding zip consumption using apache camel

2017-11-13 Thread Claus Ibsen
Hi Either tweak the read lock change options to have higher threshold - see the docs. Or when you copy the file to that computer, then copy it to some other directory / or use some other kind of name. And then afterwards move / rename the file - as this would then do it on the same computer/file-s

RE: Query regarding zip consumption using apache camel

2017-11-13 Thread Shashank Gupta
Hi, As per my earlier mail, We tried using :- 1.readLock - changed :- It didn't work because we are not sure about the length and modification time of the zip. 2.readLock - rename:- It didn't worked out too. Is there any other thing we can try to fix this. Regards Shashank

RE: Query regarding zip consumption using apache camel

2017-11-13 Thread Siano, Stephan
Hi, You likely want to set some readLock parameter to your file consumer endpoints. The value of that parameter depends a bit on your needs readLock=changed is slow but reliable, readLock=fileLock is faster, but may not work reliably if you use a shared filesystem. There are other options, so y

RE: Query regarding zip consumption using apache camel

2017-11-13 Thread Shashank Gupta
Hi, Thanks for the reply. The problem is that there are 2 separate queue listening to the same folder one is for unzipping the file and another one is for reading the pdf's and txt's As soon as I start copying the zip file which is of 8-10 MB, camel starts unzipping the zip packet even before

Re: Query regarding zip consumption using apache camel

2017-11-13 Thread Onder SEZGIN
I think your situation is a bit hard to guess unless you share your routing details. In case, you directly consume files by trying to unmarshall them even if your file transfer is complete. If you use file component, you may need to look into exclude option to avoid consuming incomplete transferr

Re: Simple language starts with ignore case

2017-11-13 Thread Onder SEZGIN
See simple or file language for details. On Mon, 13 Nov 2017 at 19:29, Pakarinen, Jari wrote: > Hi, > > Thanks. I understand. How do I go about lowercasing the filename value? > > Jari > > Lähetetty Samsung Galaxy -älypuhelimesta. > > > Alkuperäinen viesti > Lähettäjä: Claus Ib

Re: Configuring Two Contexts in Camel Blueprint - how to set ServletComponent 'servletName' property

2017-11-13 Thread karaf-user
Hi Claus, Thanks for your reply. Currently I don't explicitly instantiate the ServletComponent either by DSL or code but have been relying on 'Camel Magic' to do this for me, is it recommended that I explicitly create the component? I also discovered this solution to my problem. Use this:   

Re: Simple language starts with ignore case

2017-11-13 Thread Pakarinen, Jari
Hi, Thanks. I understand. How do I go about lowercasing the filename value? Jari Lähetetty Samsung Galaxy -älypuhelimesta. Alkuperäinen viesti Lähettäjä: Claus Ibsen Päivämäärä: 13.11.2017 17.04 (GMT+02:00) Saaja: users@camel.apache.org Aihe: Re: Simple language starts with

Re: Simple language starts with ignore case

2017-11-13 Thread Claus Ibsen
Hi No its not possible, we have too many operators already - to add starts with ignorecase (would be too verbose and ugly) You can use reg-exp or you can lower-case/upper-case the value and then use starts with in that case only. On Mon, Nov 13, 2017 at 2:59 PM, Pakarinen, Jari wrote: > Hi, > >

Simple language starts with ignore case

2017-11-13 Thread Pakarinen, Jari
Hi, Would it be possible to have a starts with ignore case (like contains ignore case) in the simple language ? Currently it is case sensitive. Or is there a possibility to set the "${header.CamelFileNameOnly} to lower case somehow ? .when(simple("${header.CamelFileNameOnly} starts with 'MyFil

Re: Need Example, use result from SQL-Query as input into Second Database/Table

2017-11-13 Thread Claus Ibsen
Hi If the 1st query return only 1 row, then you can set outputType=SelectOne Then the returned value is a Map Then you can use the column names as-is in the 2nd query See the docs at https://github.com/apache/camel/blob/master/components/camel-sql/src/main/docs/sql-component.adoc On Mon, Nov 13

Need Example, use result from SQL-Query as input into Second Database/Table

2017-11-13 Thread Christian Stark
Hello, Assuming the following example: I'd like to know how to control/manipulate the variables to insert the input from the first query from table/database1 into the second table/database2. What is the best option to manipulate $input1,$input2,$input3 Do we need a transformer or a converter?

Query regarding zip consumption using apache camel

2017-11-13 Thread Shashank Gupta
Hi, We am trying to unzip the zip and then reading the pdf and txt files inside that. We are using Camel Apache with Java in our project. The problem is occurring when we are trying to copy the zip over remote desktop in windows, we are copying the zip directly into the hot folder(which camel is