Lookup host and port info of Destinations in Route from Service Registry

2016-12-19 Thread sridharb
Hi, Is there way to leverage the features of Service Discovery and Load Balancing provided by Spring Cloud Eureka in a Apache Camel Application. I am looking for a way to lookup up the destinations used in Camel routes from a Service registry like Eureka. Thanks, Sridhar -- View this message

Camel-json Dataformat query

2016-12-19 Thread urwithsumit
Hi, I need help to understand the unmarshalTypeName property with Camel Json dataformat. Sometimes when I pass on the package name where my pojo files (custom & auto generated) are present to this property than I get a success during marshalling/unmarshalling. But than I also face the issue when

Re: howto aggregate to csv file

2016-12-19 Thread souciance
Hello, I haven't done aggregating from separate files but you would have to probably do something like: 1. Parse first file 2. Split row by row basis 3. For each row, get the corresponding row in the second file. So if you are on row one get row one of the second file. Combine the two. 4. Do your

Re: sql component using spring-boot datasource

2016-12-19 Thread Antonin Stefanutti
Hi, I think this is already possible. We may dig into why this is not working for you, though you can find a working example here: The data source configuration: https://github.com/fabric8-quickstarts/spring-boot-camel-rest-sql/blob/3fdcb17ce52d3f42f63dc38e6d73cf97deafefb2/src/main/resources/ap

Re: sql component using spring-boot datasource

2016-12-19 Thread Claus Ibsen
Hi Yeah it would be nicer if we can make it use the spring boot data source OOTB, you setup in the application.properties file. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-10618 On Mon, Dec 19, 2016 at 7:19 PM, Launcelot wrote: > This could be a rookie mistake, if so ap

sql component using spring-boot datasource

2016-12-19 Thread Launcelot
This could be a rookie mistake, if so apologies in advance My router code : @SpringBootApplication public class MySpringBootRouter extends RouteBuilder { @Autowired DataSource dataSource; public DataSource getDataSource() { return dataSource; }

Re: Start and Stop ActiveMQ consuming

2016-12-19 Thread Quinn Stevenson
You could use the Control Bus EIP ( https://camel.apache.org/controlbus.html ) to shutdown the ActiveMQ route when it’s complete. > On Dec 19, 2016, at 5:55 AM, DanielArias wrote: > > Hi, good morning > > I'm trying to read from an activemq route aft

Re: howto aggregate to csv file

2016-12-19 Thread Quinn Stevenson
Have you tried using pollEnrich to pull in the second file? Something like from(uri).unmarshal().csv() .pollEnrich(“uri”, aggregationStrategy) .marshal().csv() .to(“final file uri”); > On Dec 19, 2016, at 7:19 AM, Richter, Thomas wrote: > > Moin @all, > I have two folders with 2 paire

Json format disturbed // Rest DSL + Jackson

2016-12-19 Thread contactreji
Hi I am trying to expose a rest endpoint from camel. Below is the route. *package com.tgt.worker.routes; import com.tgt.student.StudentPojo; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.jackson.JacksonDataFormat; import org.ap

Re: Only 200 threads limit in Jetty.

2016-12-19 Thread yogu13
Hello XoshniK, Do note threads increased in jetty would only affect the http endpoint. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Only-200-threads-limit-in-Jetty-tp5791477p5791714.html Sent from the Camel - Users mailing list archive at Nabble.com.

howto aggregate to csv file

2016-12-19 Thread Richter, Thomas
Moin @all, I have two folders with 2 paired csv files with a same name und different extension: File2342.a.csv and File2342.b.csv. The common id column can have another name - also the data columns may differ. -- | id | d1 | d2 | + |

Re: Only 200 threads limit in Jetty.

2016-12-19 Thread XoshniK
Thank you for your replies! yogu13, With that params hawtio doesn't start up But the following gave some results: 10 300 6 false Max number of threads changed in hawtio(from 200 to 300) B

Start and Stop ActiveMQ consuming

2016-12-19 Thread DanielArias
Hi, good morning I'm trying to read from an activemq route after a specific condition. So when this condition happens I trigger the second route placing a file into a folder, this route will start/trigger the first route so it would start consuming all messages from the activemq. So the first ti

Lookup functionality using apache camel

2016-12-19 Thread ravi21588
Hi All, I have a Excel sheet with 4700 entries. The list contains List name,Code and Description. For a particular description in an xpath i need to lookup and get the Code. Doing translation using xslt will be cumbersome. Example as below: ListValueDescription CNT 001 United Sta

Re: camel cxfrs // rest server issues

2016-12-19 Thread DariusX
You probably need this additional dependency in your POM org.apache.camel camel-jetty ${camel-version} -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxfrs-rest-s

Re: Dynamically remove "from" endpoint

2016-12-19 Thread michael.esmann
Thank you for the quick reply !! Saves me from using time on more experiments. /Michael -- View this message in context: http://camel.465427.n5.nabble.com/Dynamically-remove-from-endpoint-tp5791687p5791697.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamically remove "from" endpoint

2016-12-19 Thread Claus Ibsen
No cannot be dynamic. Also its discouraged to have 2 or more in the same route. This will be removed in Camel 3.0. Create 2 different routes, and then have autoStartup=false|true for the FTP route depending on the environment. You can use the simple language to check for a ENV property or somet

Dynamically remove "from" endpoint

2016-12-19 Thread michael.esmann
Hi, We are using Camel 2.17.3 (blueprint) with Karaf 4.0.7 I would like to know if there is a way to exclude a "from" endpoint from a route by a configuration property. The reason is that we have many different environments and not all type of endpoint exists in the environments. A simple exampl