Re: Camel activemq consumer

2015-07-01 Thread Stephan Burkard
Hi Check out Polling Consumer: http://camel.apache.org/polling-consumer.html Regards Stephan On Mon, Jun 29, 2015 at 5:40 AM, rbkumar88 wrote: > Hi, > > Is there anyway to have a camel activemq consumer to consume only one > message at a time. > PFB the scenario. > > I have a quartz schedule

Re: Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread furchess123
OK, thanks for looking into this. In the meantime, I suppose I'd have to remove @Component annotation from my route builders, define them in the Spring XML file and then define the routeBuilders with the references to them. That's inconsistent with the rest of my Spring components, but that certain

Re: Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread Claus Ibsen
I logged a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-8926 On Wed, Jul 1, 2015 at 8:43 PM, Claus Ibsen wrote: > Hi > > Ah its because Camel uses this to find the beans > > Map beans = > applicationContext.getBeansOfType(RoutesBuilder.class, true, true); > > And I suspect i

Re: Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread Claus Ibsen
Hi Ah its because Camel uses this to find the beans Map beans = applicationContext.getBeansOfType(RoutesBuilder.class, true, true); And I suspect it causes spring to try to auto wire and create the bean. Then thereafter the filtering is done, eg frankly we would need to know the class name befor

Re: Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread furchess123
Claus, thank you for your response. Removing spaces didn't help (and, frankly, I'd be surprised if it did.) I did the following: http://camel.apache.org/schema/spring";> com.myco.something.route.MyExcludedRouteBuilder Same error. -- View this mes

RE: newbie implementation question

2015-07-01 Thread Mills, Gary (GE Energy Management, consultant)
Thank you Claus, greatly appreciated. Have a great day! -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Wednesday, July 01, 2015 10:39 AM To: users@camel.apache.org Subject: Re: newbie implementation question Hi Yeah split into 2 or more parts. The ftp that do

Re: newbie implementation question

2015-07-01 Thread Claus Ibsen
Hi Yeah split into 2 or more parts. The ftp that downloads those needed files into some directory. And then another route that only pickup the files when you have all 4. As the aggregation is a bit complicated you may just write some java code that puts the data correct in the right order. On W

Re: Apache Camel RouteBuilder in Spring doesn't launch configure()

2015-07-01 Thread Claus Ibsen
Hi Try with a default no-arg constructor in your route class so it has no other dependency and see if it can be found then. If so then its maybe a problem with those 2 args you specify as dependency. On Wed, Jul 1, 2015 at 4:53 PM, alexis.jacquemart wrote: > I'm working with Apache Camel to cr

Re: Camel 2.14/Netty: How to add ByteArrayDecoder to ServerChannelPipeline?

2015-07-01 Thread Willem.Jiang
There are quit different change between the Netty3.x and Netty4.x. That is why we create a new camel component camel-netty4[1] for it. So I think you can just need to change the camel-netty to camel-netty4 and use the scheme netty4 in your camel route. -- View this message in context: http://c

Re: Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread Claus Ibsen
Hi Try without line breaks in that so there is no line breaks / spaces etc. On Wed, Jul 1, 2015 at 5:04 PM, furchess123 wrote: > Hi, > I am using Camel 2.14.2. All my RouteBuilder implementations are @Component > annotated Spring beans, auto-wired with processors, error handlers, > Aggregation

Excluding prototype-scoped @Component route builder from ?

2015-07-01 Thread furchess123
Hi, I am using Camel 2.14.2. All my RouteBuilder implementations are @Component annotated Spring beans, auto-wired with processors, error handlers, AggregationStrategy implementation beans, etc. I have been using *contextScan* to load these Spring beans into Camel context. However, I have one rout

Apache Camel RouteBuilder in Spring doesn't launch configure()

2015-07-01 Thread alexis.jacquemart
I'm working with Apache Camel to create route between dynamic endpoints. I was working with a Main which works but now I need to deploy the application on an Apache Tomcat server. The problem his that my camel-context doesn't found my route builder. Here is my applicationContext : /

Re: How add custom Read Lock Strategy

2015-07-01 Thread Claus Ibsen
Hi In short impl your own strategy and configure the file endpoint to use it. Maybe check the source code, or unit tests how it can be done / or javadoc api etc. On Wed, Jul 1, 2015 at 4:16 PM, Максим Козлов wrote: > Hi, > > We need to make our strategy Changed, but nowhere can not find a suitab

Re: Logging Camel Exchanges in Hexadecimal?

2015-07-01 Thread Claus Ibsen
Hi No its doing a toString. On Wed, Jul 1, 2015 at 3:58 PM, SteveR wrote: > Is there any way to configure Camel to do Exchange logging in hexadecimal, > rather than being rendered in the associated character set? I have a route > that I configure to use *iso-8859-1* (i.e. Latin-1) via > .*setPr

How add custom Read Lock Strategy

2015-07-01 Thread Максим Козлов
Hi, We need to make our strategy Changed, but nowhere can not find a suitable algorithm create your own strategies Camel. What is the procedure when creating your GenericFileProcessStrategy? Thank you! -- Best regards Max Kozlov aka dream-x jabber: drea...@jabber.org e-mail: dreamx@gmail.co

Logging Camel Exchanges in Hexadecimal?

2015-07-01 Thread SteveR
Is there any way to configure Camel to do Exchange logging in hexadecimal, rather than being rendered in the associated character set? I have a route that I configure to use *iso-8859-1* (i.e. Latin-1) via .*setProperty(Exchange.CHARSET_NAME, "iso-8859-1")* and the Exchange logging displays the me

Re: Camel 2.14/Netty: How to add ByteArrayDecoder to ServerChannelPipeline?

2015-07-01 Thread SteveR
Hi Willem: Actually, I'm currently using Camel 2.14 and Netty 3.x (org.jboss.netty). I'm wondering if there is a sensible way to migrate from netty3 to netty4 (i.e. other than just brute-force trying it) and what it would do with respect to my existing pipeline factory code, etc? Here's what I c

Re: Sending abort() to a httpclient

2015-07-01 Thread Pontus Ullgren
I guess you could create you own clientConnectionManager (see the option on the HTTP/HTTP4 component documentation) that returns a decorated HTTP client that, when execute is called, creates the timer and starts it. Or do some other more fancy handling to avoid having to start another thread for ea

Sending abort() to a httpclient

2015-07-01 Thread Henrik Brautaset Aronsen
I can control the httpclient connection and socket timeouts by adding query parameters to the URL delivered in ProcessorDefinition.to(), e.g. " http://example.com/stuff?httpClient.connectTimeout=1000&httpClient.socketTimeout=5000 " I'd like to have an hard overall time limit on the request, though

Re: newbie implementation question

2015-07-01 Thread Walzer, Thomas
Hi, scheduled polling is possible. However I would poll all the time. For aggregating & sorting I would use a database. Cheers, Thomas. > Am 30.06.2015 um 23:57 schrieb Mills, Gary (GE Energy Management, consultant) > : > > Hello, > > Thanks in advance, forgive me as I a learning. I do try t

Re: [Camel-kafka] KafkaProducer causes camel route to loop infinitely

2015-07-01 Thread Rahul Jain
Thanks. Created a ticket - https://issues.apache.org/jira/browse/CAMEL-8923 On Wed, Jul 1, 2015 at 1:43 PM, Claus Ibsen wrote: > Hi > > Yeah log a new ticket, then we change the header name to something > else that are not the same header as used in the from - we do the same > in JMS, if peopl

Re: overriding properties in Camel Enhanced Spring test

2015-07-01 Thread Claus Ibsen
Hi Not all features are implement or possible to implement. Its likely that useOverridePropertiesWithPropertiesComponent is added later. You are welcome to dive into the code and see what is missing and provide a patch. On Thu, Jun 25, 2015 at 7:00 AM, Minh Tran wrote: > Hi > > I'm struggling

Re: [Camel-kafka] KafkaProducer causes camel route to loop infinitely

2015-07-01 Thread Claus Ibsen
Hi Yeah log a new ticket, then we change the header name to something else that are not the same header as used in the from - we do the same in JMS, if people want to send to a destination based on a header. On Wed, Jun 24, 2015 at 7:51 PM, Rahul Jain wrote: > The KafkaProducer class reads the t