RE: upgrading to Scala 2.11

2015-04-06 Thread shreyas
Scala 2.11 does not have native XML support, you need to add the dependency:  https://github.com/scala/scala-xml For SBT: libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.3" Thanks, Shreyas > Date: Tue, 7 Apr 2015 11:12:25 +0430 >

upgrading to Scala 2.11

2015-04-06 Thread Behrad
When I upgraded to Scala 2.11 (my Camel is 2.14.0) I'm getting this error: AnnotationTypeConverterLoader - Ignoring converter type: org.apache.camel.scala.converter.ScalaTypeConverter as a dependent class could not be found: java.lang.NoClassDefFoundError: scala/xml/Elem java.lang.NoClassDefFoundE

Re: Custom Load Balancing based on Inflight Exchange

2015-04-06 Thread Claus Ibsen
Hi Yeah maybe we have a few different strategies already. But one based on "pick first the ones who are doing no or the least amount of work" sounds like a useable use-case. So yeah you are welcome to get back when you have something working and contribute. We love that http://camel.apache.org/co

Re: SFTP: RequiredAuthentications2

2015-04-06 Thread Claus Ibsen
Hi Thanks for sharing this information with the community. Great to hear its supported and works. On Tue, Apr 7, 2015 at 7:06 AM, shreyas wrote: > For anyone wondering in future, camel sftp works with > RequiredAuthentications2 or multiple auth types (both key & password). I > tested it on OSX

Re: Custom Load Balancing based on Inflight Exchange

2015-04-06 Thread franktva
Thanks for the quick response. That's the exact approach I'm taking. Do you think this feature would be useful for a future release? -- View this message in context: http://camel.465427.n5.nabble.com/Custom-Load-Balancing-based-on-Inflight-Exchange-tp5765328p5765358.html Sent from the Camel -

Re: Spring Boot component is missing CamelSpringBootApplicationController

2015-04-06 Thread Claus Ibsen
Hi Yeah wonder if we can backport this to 2.15.2. Henryk any thoughts on this? On Tue, Apr 7, 2015 at 1:51 AM, ccampo wrote: > Just a follow up - it appears that CamelSpringBootApplicationController won't > be available until 2.16.0, per > https://issues.apache.org/jira/browse/CAMEL-8532. Unfor

Re: BeanIODataFormat giving exception in OSGI compliant Karaf Server Camel

2015-04-06 Thread Claus Ibsen
What versions of the software are you using? And are you using spring or blueprint? On Mon, Apr 6, 2015 at 11:23 PM, gargankur007 wrote: > I am using CAmel for one of my projects.The bundles are deployed in OSGI. I > have a usecase in which I would need to unmarshal a CSV to POJO. I am using > Be

Re: Stop split after reading first line

2015-04-06 Thread Claus Ibsen
Hi I would then not use the splitter, but you can use a java bean / processor and read the file by line and read the first and then validate it. Java has API for a LineNumberReader or something like that so you can read the file one line at a time. On Mon, Apr 6, 2015 at 6:09 PM, manojdevendr

Spring Boot component is missing CamelSpringBootApplicationController

2015-04-06 Thread ccampo
Using Camel 2.15.1 - Camel Spring Boot from Maven Central and Spring Boot 1.2.3 The class CamelSpringBootApplicationController is not available in the camel-spring-boot jar from Maven, despite being referenced in the documentation HERE: http://camel.apache.org/spring-boot.html Additionally, I can

Stop split after reading first line

2015-04-06 Thread manojdevendran
How can I stop the split after reading the first line of a file? Looking for something like "break" in the for loop. The requirement is to read and validate first line from a large file. Please let me know if any suggestions. Thanks in advance!! -- View this message in context: http://cam

BeanIODataFormat giving exception in OSGI compliant Karaf Server Camel

2015-04-06 Thread gargankur007
I am using CAmel for one of my projects.The bundles are deployed in OSGI. I have a usecase in which I would need to unmarshal a CSV to POJO. I am using BeanIODataFormat for that. Somehow I am bale to unmarshal the same in Camel Main Program but when I put the same piece of code in OSGI I get follo

RE: SFTP: RequiredAuthentications2

2015-04-06 Thread shreyas
For anyone wondering in future, camel sftp works with RequiredAuthentications2  or multiple auth types (both key & password). I tested it on OSX. Thanks, Shreyas > From: claus.ib...@gmail.com > Date: Fri, 27 Mar 2015 16:34:39 +0100 > Subject: Re: SFTP: Re

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-06 Thread Willem Jiang
OK, here is another change CAMEL-8513[1] in Camel 2.15.1 which improves the download speed. I guess it may cause the ftp server complain about the server load. So the workaround could be set the receiveBufferSize option to 1024 to slow down the processing speed.  [1]https://issues.apache.org/ji

Re: Spring Boot component is missing CamelSpringBootApplicationController

2015-04-06 Thread ccampo
Just a follow up - it appears that CamelSpringBootApplicationController won't be available until 2.16.0, per https://issues.apache.org/jira/browse/CAMEL-8532. Unfortunately, this renders the Camel Spring Boot component effectively broken until then. A work-around for anybody encountering this issu

Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-06 Thread James Carman
You need to update jre.properties to make sure you have the right version coming from the jre. What jdk? On Monday, April 6, 2015, Martin Lichtin wrote: > In a Karaf 3.0.3 container one cannot install feature 'camel' followed by > installing 'cxf'. > > karaf@root()> feature:repo-add mvn:org.apa

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-06 Thread lichtin
Hi Willem, just would like to show that what you say is not true. I can happily first load a Spring 4 version: feature:install -v spring/4.1.2.RELEASE_1 and then load Camel: feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features feature:install camel At this poin

Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-06 Thread Martin Lichtin
In a Karaf 3.0.3 container one cannot install feature 'camel' followed by installing 'cxf'. karaf@root()> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features karaf@root()> feature:install

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-06 Thread alexey-s
File etc/org.apache.karaf.features.cfg Note line -- View this message in context: http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765369.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-06 Thread alexey-s
A short excerpt from karaf.log.xxx file -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-2-15-1-return-ftp-error-code-421-tp5765272p5765368.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-06 Thread alexey-s
Honestly. 2.15.0 On this effect is much less than 2.15.1. I used to CronScheduledRoutePolicy ftpDocReadRoutePolicy = new CronScheduledRoutePolicy(); ftpDocReadRoutePolicy.setRouteStartTime(routePolicyStartTime); ftpDocReadRoutePolicy.setRouteStopTime(routePolicyStopTime); ftpDocReadRoutePol

Multiple outputs from a custom component

2015-04-06 Thread Christopher Piggott
I have been reading mailing lists and forums trying to figure this out but haven't really come up with a clean solution. I have a zigbee ZCL component I wrote for Camel that parses out a few ZCL/ZDO messages. One of them is an attributes report, which contains a list of attributes, each with: -

Re: Karaf with Camel 2.15.1, CXF 3.0.4 - which Spring versions can be used?

2015-04-06 Thread lichtin
But don't you restrict the Spring version and exclude version 4 with the version range? I'm looking at https://repository.apache.org/content/repositories/releases/org/apache/camel/karaf/apache-camel/2.15.1/apache-camel-2.15.1-features.xml and see spring The way I read this, version 4 is not

Re: Request reply route is returning the request

2015-04-06 Thread begorrah
Works like a charm - you sir are a rock star! :-) Many thanks, /BG -- View this message in context: http://camel.465427.n5.nabble.com/Request-reply-route-is-returning-the-request-tp5765345p5765354.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Conditional skipping when intercepting message

2015-04-06 Thread Andrei Stoica
Claus Ibsen-2 wrote > interceptSendToEndpoint("mock:skippable").skipSendToOriginalEndpoint() > .when(body().isEqualTo("skip")).to("mock:detour"); When does the to() occur? Is it like: all routes are skipped and the ones that have the body equals to "skip" are sent on the to

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-06 Thread Willem Jiang
There are only few changes between Camel 2.15.1 and Camel 2.15.0. I’m not sure if CAMEL-7565[1] is related to issue that you faced. [1]https://issues.apache.org/jira/browse/CAMEL-7565 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http: