Re: ftp advanced filtering

2016-08-17 Thread Claus Ibsen
On Sat, Aug 13, 2016 at 11:56 PM, gonzo wrote: > Hello, > > I need to add some database checks into my filter. Having file name is not > enough for my case. > I'm wondering if there is any other option of file filtering than using > GenericFileFilter in uri? > Example: > from("ftp://user@host/Down

Re: Rest DSL & CORS

2016-08-17 Thread Claus Ibsen
You can try set a header with the value you want. The CORS in Camel may preserve existing headers (cannot remember) On Tue, Aug 16, 2016 at 4:22 AM, dmitriyC300 wrote: > Hi Guys, > Is there a way to dynamically set/reset Access-Control-Allow-Origin response > header based on incoming request's O

Re: poll enrich and file endpoint

2016-08-17 Thread Claus Ibsen
Its easier to do a message transformation and set the body as a java.io.File {{env:HOME}}/my-dir/${body} On Tue, Aug 16, 2016 at 8:39 PM, Alex Soto wrote: > Hello, > > I am experiencing erratic results when using the Poll Enrich with a static > file. > The file is static in the sense that

Re: Retrieve all properties in CamelContext

2016-08-17 Thread Claus Ibsen
Are you talking about property placeholders? And if you are using Spring then those properties are from Spring. There is no API in Camel to get all properties. Its not possible and easy to do. If your properties are externailized to .properties files, then you can find those files and read the pro

Re: date function source

2016-08-17 Thread Claus Ibsen
It uses the JDK Date API so whatever it uses - is used by Camel. On Wed, Aug 17, 2016 at 3:20 PM, Mark Lybarger wrote: > i have a camel route that uses a date function: > > .setProperty("dateNow",simple("${date:now:HHmmssSSS}")) > .log("dateNow:${property.dateNow}") > > I'm curious what controls

Re: Camel idempotent // TTL

2016-08-17 Thread Claus Ibsen
Hi Not out of the box. You can add your own idempotent repository that keeps track of age, and then removes > 6h. On Thu, Aug 18, 2016 at 8:04 AM, contactreji wrote: > Hello guys > > Is there a way we can define a lifetime or a TTL for a duplicate message. > There are chances I might have to

Camel idempotent // TTL

2016-08-17 Thread contactreji
Hello guys Is there a way we can define a lifetime or a TTL for a duplicate message. There are chances I might have to remove duplicates which come in a span of 6 hours. And after 6 hours I might need to allow the message with same key. Reji - Reji Mathews Sr. Developer - Middleware Integr

Request-Reply and Publish

2016-08-17 Thread chandler
Incoming endpoint is /Jetty/REST/ with/ Pattern="InOut"/. I then publish the request message on a topic. With multiple consumers. I only want one of the consumers (Service Activator) to reply. I tried putting a /pattern="InOnly"/ on the "to" of the Service Activators (camel components) that I di

Re: Camel SEDA timeout: Update it at runtime

2016-08-17 Thread chandler
It would be nice if ALL the JMS/Exchange system headers/properties were persevered in the SEDA Queue. Example: /replyto correlationID, .../ -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SEDA-timeout-Update-it-at-runtime-tp5786538p5786544.html Sent from the Camel - Use

Re: Camel SEDA timeout: Update it at runtime

2016-08-17 Thread Vitalii Tymchyshyn
You can try using dynamic to ( http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html) to set timeout option from header. Best regards, Vitalii Tymchyshyn Ср, 17 серп. 2016 10:45 користувач dcparga пише: > Hi all, > > I'm trying to implement a seda route to handle rest calls asynchronously

Re: Camel SEDA timeout: Update it at runtime

2016-08-17 Thread Brad Johnson
Are the REST timeouts the same for a given resource or would it change even for the resource? The reason I ask is that you could have a seda queue per method/resource and use a recipientList to route to the correct queue associated with that request. Obviously this also depends some on how you do

Re: Camel SEDA timeout: Update it at runtime

2016-08-17 Thread José Luis Pedrosa
I think this may require a small change on seda component to accept values in a haeader for example. I think maybe a Jira ticket should be better? Claus? Rgds On Aug 17, 2016 16:46, "dcparga" wrote: > Hi all, > > I'm trying to implement a seda route to handle rest calls asynchronously. > The p

Re: Disabling concurrency in camel route

2016-08-17 Thread Vitalii Tymchyshyn
You would need a combination. Ср, 17 серп. 2016 09:41 користувач robina пише: > Thanks for the reply Vitalii, > > Would setting synchronous=true on its own ensure that only one message is > processed by the route at any given time? Or is it the combination of the > maxPoolSize of 1 and synchrono

Camel SEDA timeout: Update it at runtime

2016-08-17 Thread dcparga
Hi all, I'm trying to implement a seda route to handle rest calls asynchronously. The point is, that I would like to handle different timeouts per call, which leads the problem to be able to change the timeout of the seda route using a parameter on the HTTP header. As far as I know, the timeout it

Re: Disabling concurrency in camel route

2016-08-17 Thread Karts
I believe you can just set .threads(1) -- View this message in context: http://camel.465427.n5.nabble.com/Disabling-concurrency-in-camel-route-tp5786531p5786535.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Disabling concurrency in camel route

2016-08-17 Thread robina
Thanks for the reply Vitalii, Would setting synchronous=true on its own ensure that only one message is processed by the route at any given time? Or is it the combination of the maxPoolSize of 1 and synchronous=true setting? Regards, Rob -- View this message in context: http://camel.465427.n5

Re: Disabling concurrency in camel route

2016-08-17 Thread Vitalii Tymchyshyn
You should also do "synchronous=true". Otherwise you may experience reordering on any asynchronous producer. Another option is to use http://camel.apache.org/resequencer.html when you want the sequence restored. Best regards, Vitalii Tymchyshyn Ср, 17 серп. 2016 о 09:28 robina пише: > Hi, > > I

Disabling concurrency in camel route

2016-08-17 Thread robina
Hi, I've encountered a scenario in a camel route involving (I believe) concurrency: My route has a netty4 tcp consumer, which then uses a multicast to pass the message through a number of xsl transformers which then output to ActiveMQ endpoints. I've observed that when I receive a large XML mess

date function source

2016-08-17 Thread Mark Lybarger
i have a camel route that uses a date function: .setProperty("dateNow",simple("${date:now:HHmmssSSS}")) .log("dateNow:${property.dateNow}") I'm curious what controls the date stamp here. on some systems, it uses clock time, and on some it uses gmt time. on my windows system, it uses clock time,

Binary Data Structure Marshalling and Unmarshalling

2016-08-17 Thread Pratik Thacker
We need to decode and encode binary data structure. We explored several data formats available in http://camel.apache.org/data-format.html. But couldn't find relevant data format for binary structured record. For example: If my data structure of a record is like: SampleStructure bytes(12){

Can't make camel-example-spring-security works

2016-08-17 Thread olivier
Hi, This is probably a basic issue but i'm not very familiar with neither Camel, nor Maven. I'm simply trying to run the camel-example-spring-security provided with Camel 2.17.3 version. I'm running Maven 3.2.3 with Java 1.8.0_101. In the instructions it says to run: mvn clean install And then: