Re: throttling a restlet endpoint by discarding excess requests

2013-08-28 Thread Vincent Nonnenmacher
could be much more easier/simplier to add a guard to the restlet route, keep track of this throttling limit and return the exception from inside Restlet. see http://restlet.org/learn/tutorial/2.1/#part09 'guard' could be used for more needs than just securing access. On Wed, Aug 28, 2013 at 1

Re: Advice on mirroring using FTP2 component

2012-09-03 Thread Vincent Nonnenmacher
On Mon, Sep 3, 2012 at 9:32 PM, Tim Dudgeon wrote: > On 03/09/2012 19:54, Vincent Nonnenmacher wrote: > >> one way could be to not use idempotent and implement a filter that return >> true or false on the modification date of the underlying file and handle a >> water m

Re: Advice on mirroring using FTP2 component

2012-09-03 Thread Vincent Nonnenmacher
one way could be to not use idempotent and implement a filter that return true or false on the modification date of the underlying file and handle a water mark so you know that any file with such date after the mark is selected. On other could be to implement your own org.apache.camel.spi.Idempot

Re: enrich and pollEnrich

2012-08-15 Thread Vincent Nonnenmacher
I concur to this, the notions aren't very clear at the beginning on an otherwise very well written book. A phrase like this "The TO .. is "always" a producer.." along with very clear schemas could help a lot, because somehow its counter intuitive, until the light come up latter by practicing. It

Re: Camel-freemarker deletes Attachments from Exchange

2012-08-09 Thread Vincent Nonnenmacher
could you post your route code ? On Thu, Aug 9, 2012 at 5:38 PM, Laurentiu Trica wrote: > Hello, > > I have a problem with Camel 2.6 when a camel-freemarker deletes the > attachments from the Exchange. Is this a known issue? Can I overcome it? > > Many thanks! > > Best regards, > Laurentiu Tri

Re: Route stops if more than one message is sent

2012-07-25 Thread Vincent Nonnenmacher
You could use github to post a GIST of your routes DSL and post its URL here, so you CAN get help. On Wednesday, July 25, 2012, Alistair Young wrote: > I've removed all routes and now I'm getting random messages disappearing > from the simplest possible route: > > excuse the lack of xml format -

Re: Splitting, processing and aggregating a list

2012-07-13 Thread Vincent Nonnenmacher
On Fri, Jul 13, 2012 at 5:49 PM, Claus Ibsen wrote: > On Fri, Jul 13, 2012 at 5:45 PM, ben1729 > wrote: > > Claus to the rescue! Thank you very much, works like a charm. Nice book > by > > the way. > > > > Ah if you got the book, then see chapter 8, section 8.3.2 > > guess you made a small type

Re: One Camel Context with several XMLs

2012-06-14 Thread Vincent Nonnenmacher
a good investment is to buy the 'Camel in Action' book its very well written and enligthening even for seasoned Camel developers! On Thu, Jun 14, 2012 at 8:44 PM, Bruno Borges wrote: > sweet, just what I needed... thanks claus > > It seems the docs are a little fuzzy. I spent like 10 min looking

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Vincent Nonnenmacher
ill be camel processor. I see examples where you parse > a header using a comma (","), or a java.util.List of strings but not > processors. I am trying to build the list dynamically inside a bean. > > > > > On Thu, Jun 14, 2012 at 3:50 PM, Vincent Nonnenmach

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Vincent Nonnenmacher
you means this is not what you're looking for ? On Thu, Jun 14, 2012 at 9:08 PM, Tyler Durvik wrote: > Is it possible to send a message to a group of Camel processors using > a recipient list ? I have looked through the documentation and cannot > f

Re: Splitter - share properties between exchanges

2012-05-24 Thread Vincent Nonnenmacher
can you pass first the File body to a processor bean, that would add the CSV header (or fields name list) to the message Header then it will be available in all splits after the splitter ? On Thu, May 24, 2012 at 2:53 PM, greg_le_bonniec < gregory.lebonn...@zenika.com> wrote: > Hi, > > I am usin

Re: Unable to read properties from camel PropertiesComponent

2012-05-18 Thread Vincent Nonnenmacher
if you use the Spring properties you need to refer to properties using the Spring ${} interpolation syntax but if you choose to use the Camel properties component you must use the {{ }} interpolation syntax in that latter case its better to use the On Fri, May 18, 2012 at 3:07 PM, j

Re: is it possible to Poll a file periodically with different endpoints?

2012-04-04 Thread Vincent Nonnenmacher
you can use 'properties' when specifying routes, so it is easy to build XML (or use JavaDSL) to build your various routes and provide changing part of them using properties that could be injected by a file (or a properties object constructed from a database). look here : http://camel.apache.org/pr

Re: Camel Monitoring Tool

2012-04-04 Thread Vincent Nonnenmacher
nitor Camel with these tools. > > Otherwise, write a batch/shell script which call the JMX beans and check > > the values. We are doing this and we use [1]. > > > > [1] http://crawler.archive.org/cmdline-jmxclient/ > > > > Best, > > Christian > > &g

Re: Camel Monitoring Tool

2012-04-04 Thread Vincent Nonnenmacher
you can use the camel fuse mediation router that I think have monitoring/debug tool here : http://fusesource.com/products/enterprise-camel/ and as a side effect use their service has main committers on Camel work here ;-) (not affiliated with them !) On Wed, Apr 4, 2012 at 6:19 PM, gilboy wro

Re: scalable bus with multiple Camel instances

2012-04-03 Thread Vincent Nonnenmacher
could also look on using akka for the scaling and camel for the request/routing considered as a 'unit of work' (i.e a black box for individual operations like pulling from queues..) akka and camel blend perfectly well together. On Tue, Apr 3, 2012 at 2:42 PM, unludo wrote: > Thank you Claus, t

Re: Camel context

2012-02-29 Thread Vincent Nonnenmacher
That a very strange position ! Can you describe what you are trying to do with just a producer to consumer ? Is this a simple Message passing between two pojos ? If this is the case Camel is overkill for that, and if you are planning to have several of theses, it means that you have some sort of

Re: loading xml file

2012-02-14 Thread Vincent Nonnenmacher
Samruben I highly recommend the "camel on action" book it is enlightning to say the least. On Tuesday, February 14, 2012, Claus Ibsen wrote: > On Tue, Feb 14, 2012 at 8:36 AM, Samruben wrote: >> Thank you for your reply. >> >> I have gone through it. Is there any demo example implemented this

Re: ERROR while running camel routing as war file

2012-02-11 Thread Vincent Nonnenmacher
yes just saw that while updating my pom, so confused (too recent play with guava I admit). thanks for pointing that. By the way, it seems that the m2eclipse plug-in can't grab anymore the source/javadoc of the 2.10-SNAPSHOT while I remembered it find the 2.9.0-SNAPSHOT fine. On Sat, Feb 11, 201

Re: ERROR while running camel routing as war file

2012-02-11 Thread Vincent Nonnenmacher
On Sat, Feb 11, 2012 at 11:47 AM, Samruben wrote: > Hi > I am new user to camel. > > I have tried to route the message from one queue to other queue. while > running as java application, it works fine. > I have created war file using the same java file but am getting this error. > > ERROR - {135

About SQS deletion of Message (or policy?)

2012-02-11 Thread Vincent Nonnenmacher
I have a complex routing system using Camel and I want to pull message from an AWS-SQS queue into it. but I would like to control the deletion of message at the end of all the routes process. I don't have a way to control how my message flow goes 'outside' a series of routes and processing so I do