Re: Urgent - Reprocess/Consume the same file again - Camel Route

2014-03-07 Thread Claus Ibsen
You can use a custom idempotent repo and then remove the key when you want to re-prorcess the file again. Such as when you have moved it to the DONE directory. Or you can use a custom filter, and then return false, while you are still processing the file, eg it has not been moved to DONE folder.

Re: camel-dropbox

2014-03-07 Thread hifly81
Hi you can use the consumer as in the example from("dropbox://search?" + getAuthParams() + "&remotePath=/XXX"+"&query=XXX") .to("mock:result"); note that for query you can rely on dropbox doc how to specify the regular expression http://dropbox.github.io/dropbox-sdk-java/

Re: Camel-PayPal

2014-03-07 Thread Claus Ibsen
Hi There is no camel-paypal component from Apache. The one you point to is 3rd party and we do not support that from Apache. You need to get in touch with that 3rd party how to use it etc. There is a ticket to create a camel-paypal component. But maybe due licesing its to be hosted at camel-extr

Re: diagnosing onException problem?

2014-03-07 Thread Claus Ibsen
Hi You need to turn on backoff with useExponentialBackOff() And debugging see http://camel.apache.org/how-do-i-debug-my-route.html .. and debugging the source is a bit tougher, but see CamelInternalProcessor which is a central class during Camel routing. On Fri, Mar 7, 2014 at 10:35 PM, Keith F

Re: Camel process the same file again when idempotent = true

2014-03-07 Thread Claus Ibsen
There was a bug in that idempotentKey in some Camel releases, upgrade your Camel version On Fri, Mar 7, 2014 at 5:57 PM, spanchag wrote: > Thanks for your response. > This is still not working. Any other suggestions? > > Thanks, > Ram > > > > -- > View this message in context: > http://camel.46

CMIS to update document properties

2014-03-07 Thread chaij
I am using Camel CMIS component to upload document to Alfresco. I didn't see any description on how to store/update document properties with the document. Is there anyway to do it? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/CMIS-to-update-document-properties-tp5

Re: Camel process the same file again when idempotent = true

2014-03-07 Thread spanchag
Thanks for your response. This is still not working. Any other suggestions? Thanks, Ram -- View this message in context: http://camel.465427.n5.nabble.com/Camel-process-the-same-file-again-when-idempotent-true-tp5748373p5748467.html Sent from the Camel - Users mailing list archive at Nabble.c

Urgent - Reprocess/Consume the same file again - Camel Route

2014-03-07 Thread Prithiv
Hi, Following is a scenario, Please suggest. I have a file say A.txt in input folder. The camel route kicks in, puts in the location of file(filepath/filename) in a message queue and subsequent process picks up the file, processes it and the last process moves it to a DONE directory. Now the requi

Re: camel-dropbox

2014-03-07 Thread hifly81
Hi, I will work on Karaf feature next week, I hope to release it very soon! Ciao! hekonsek wrote >> Has anybody tried to simply wrap the jar? > > I asked Giovanni if he would be so kind to donate the feature for the > component as well. > > I'll try to review and merge the component after the

Re: Urgent - Reprocess/Consume the same file again - Camel Route

2014-03-07 Thread spanchag
Hi, I'm having the same problem. Looks like Camel caches 1000 file names. I'm also waiting for a solution/workaround for this. Thanks, Ram -- View this message in context: http://camel.465427.n5.nabble.com/Urgent-Reprocess-Consume-the-same-file-again-Camel-Route-tp5748468p5748469.html Sent f

diagnosing onException problem?

2014-03-07 Thread Freeman, Keith
I have this code in my route: onException(Exception.class) .handled(true) .maximumRedeliveries(-1) .redeliveryDelay(1L * 1000L) .backOffMultiplier(2.0D) .maximumRedeliveryDelay(60L * 1000L) .l

Camel-PayPal

2014-03-07 Thread Mark.Nelson
Hi, I want to use camel-paypal component but I didn't find any documentation that can help me. I want to do a recurring billing. User subscribes to a service and i want to bill every period of time. Also I want to do purchase with credit card. Is this possible using the camel component? I didn'

Camel Validation Relative Paths

2014-03-07 Thread ychawla
Hello All, I see that an issue was reported validating XML documents with relative paths: https://issues.apache.org/jira/browse/CAMEL-6572 Judging by the schema that was attempting to be imported, it looks like a NIEM document. I am seeing the same issue using SMX 4.5.2 / Camel 2.10.6. I was wo

diagnosing onException problem?

2014-03-07 Thread Keith Freeman
I have this code in my route: onException(Exception.class) .handled(true) .maximumRedeliveries(-1) .redeliveryDelay(1L * 1000L) .backOffMultiplier(2.0D) .maximumRedeliveryDelay(60L * 1000L) .

Re: camel-dropbox

2014-03-07 Thread Henryk Konsek
> Has anybody tried to simply wrap the jar? I asked Giovanni if he would be so kind to donate the feature for the component as well. I'll try to review and merge the component after the weekend. Cheers! [1] https://github.com/apache/camel/pull/58#issuecomment-37037366 -- Henryk Konsek http://

Re: AW: Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-07 Thread Andrzej Gdula
I've tried to add state but it does not work This does not work I've tried adding ".eagerCheckCompletion()" but with this i get NPE. It happens when each message is different (like A B C E insread of A A B B C C). -- View this message in context: http://camel.465427.

Re: camel-dropbox

2014-03-07 Thread Henryk Konsek
> We need to addition work to create an OSGi bundle of Dropbox API for > providing camel-dropbox karaf feature. Has anybody tried to simply wrap the jar? Cheers. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: camel-dropbox

2014-03-07 Thread Willem Jiang
We need to addition work to create an OSGi bundle of Dropbox API for providing camel-dropbox karaf feature. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Marc

Re: camel-dropbox

2014-03-07 Thread Henryk Konsek
> Are you sure we can include this component in ASF Camel? OK, that the project GitHub page [1] there is stated as follows - "License: MIT" . I'd say +1 for the ASF then. I'll try to find time to review the component and add it to the ASF codebase later today. Cheers. [1] https://github.com/dro

Re: AW: Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-07 Thread Andrzej Gdula
What i want is to group subsequent messages. If there is a message that doesn't fit to messages i've already aggregated then i want to stop aggregation and start to aggregate from that message. Im my case correlation correlationExpression in my case must be 'constant(true)'. I want to process fil

Re: camel-dropbox

2014-03-07 Thread Henryk Konsek
> If so, I would like to vote for a direct inclusion to the ASF branch. The SDK is distributed on the "Copyright (c) 2013 Dropbox Inc." license. In POM there is "MIT" license element. On the other hand the source code doesn't have license headers at all... Are you sure we can include this compone

Re: camel-dropbox

2014-03-07 Thread Christoph Emmersberger
Agree, … just one more thing, can we enforce someone using the camel-dropbox component to adhere to the Dropbox API Terms and Conditions [1]? If so, I would like to vote for a direct inclusion to the ASF branch. Best, Christoph [1] https://www.dropbox.com/developers/reference/tos On 07 Mar 20

AW: Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-07 Thread jhm
Answer from newby so please recheck ;) With a correlationExpression you could aggregate file1-3+5 and file4 together (maybe the expected 1-3,4,5) Another approach is using a constant cE, so all exchanges come to the same aggregator instance. Here you react on a header-value-change. Jan > -

Re: camel-dropbox

2014-03-07 Thread Christian Müller
MIT/X11 licensed software can be included. Have a look at [1]. [1] https://www.apache.org/legal/3party.html#criteriaandcategories Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator

Re: camel-dropbox

2014-03-07 Thread Christoph Emmersberger
+ 1 for handling it the proposed way. I just checked the legal page of ASF [1] and figured that MIT license is basically compatible with ASF 2.0 [2]. However the statement regarding MIT license is not 100% clear, since it is related to Ruby Gems and ending with the following statement: “... ot

File is 0 bytes after FTP transfer (in some cases)

2014-03-07 Thread toxels87
I have a route where files are downloaded from aan FTP endpoint, to a local folder. In some cases, the incoming file is 0 bytes, while the file on the FTP server is not empty. Can you think of any reasons why the file transferred is empty? my code: CronScheduledRoutePolicy policy = new CronS

Re: camel-dropbox

2014-03-07 Thread Pontus Ullgren
In the the dropbox core API zip file there is a License.txt https://www.dropbox.com/developers/downloads/sdks/core/java/dropbox-java-sdk-1.7.6.zip --- Copyright (c) 2013 Dropbox Inc., http://www.dropbox.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this soft

Re: camel-dropbox

2014-03-07 Thread Henryk Konsek
> What I can not answer is, if the dropbox license and terms of conditions > meet the general ASF requirements or not. Apparently not. > If it is not possible to contribute the component to the ASF branch, I would > vote for a contribution to camel-extra. I asked to author of the DropBox pull re

Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-07 Thread Andrzej Gdula
I've got a sequence of input files. I need to process them in order. I also need to group subsequent messages messages with the same xpath(/Root/Type) in a list. Is there a way to do this using aggregator ? eg. File 1 ( contains A ) File 2 ( contains A ) File 3 ( contains A ) File 4 ( contains B

Re: smpp transaction doesn't work

2014-03-07 Thread Oleg
Christian , Is there some way how to omit this ? Or any suggestion how to make it reliable because missing messages not suitable for us . -- View this message in context: http://camel.465427.n5.nabble.com/smpp-transaction-doesn-t-work-tp5748385p5748439.html Sent from the Camel - Users mailing

Re: camel-dropbox

2014-03-07 Thread Christoph Emmersberger
Hi Henryk, I guess there is an open pull request for adding camel-dropbox to ASF. https://issues.apache.org/jira/browse/CAMEL-6999 What I can not answer is, if the dropbox license and terms of conditions meet the general ASF requirements or not. If it is not possible to contribute the componen

Re: Camel process the same file again when idempotent = true

2014-03-07 Thread Stephan Burkard
Since Camel 2.11 this is at least possible for the file component with the option "idempotentKey". I am not sure if this also works for SFTP but you can give it a try. Here is an example from a unit-test: "...?idempotent=true&idempotentKey=${file:onlyname}-${file:size}" For the available key opti

SQL consumer, transactions and concurrency

2014-03-07 Thread Stephan Burkard
Hi Camel riders I'd like to consume records from a database and pass them to a queue. Sounds very simple as well as the route would be very simple: from("sql:select ...?consumer.onConsume=update or delete ...&otherOptions...").to("activemq:queue:myQueue"); respectively: from("sql:select ...