Re: Cannot install camel-swagger through Karaf

2015-11-13 Thread Matt Sicker
Thanks, that installs properly. On 13 November 2015 at 11:29, Claus Ibsen wrote: > Yeah use camel-swagger-java from Camel 2.16 onwards. The old scala > based is deprecated and dont work really in OSGi. > > On Fri, Nov 13, 2015 at 6:17 PM, Matt Sicker wrote: > > I'm not sure where to report this

Re: sftp endpoint is not as performant as expected

2015-11-13 Thread Preben.Asmussen
+1 -- View this message in context: http://camel.465427.n5.nabble.com/sftp-endpoint-is-not-as-performant-as-expected-tp5773654p5773879.html Sent from the Camel - Users mailing list archive at Nabble.com.

Possible issue with 2.16 SFTPConsumer startup

2015-11-13 Thread pmmerritt
We ran into a scenario that I am not sure if the behavior is desired but wanted to mention it. The SFTPConsumer in 2.16 added support for the autoCreate option which is enabled by default. If for some reason the SFTP server is down or the directory can't be created and throwExceptionOnConnectFaile

Re: Cannot install camel-swagger through Karaf

2015-11-13 Thread Claus Ibsen
Yeah use camel-swagger-java from Camel 2.16 onwards. The old scala based is deprecated and dont work really in OSGi. On Fri, Nov 13, 2015 at 6:17 PM, Matt Sicker wrote: > I'm not sure where to report this bug: Karaf or Camel. When I add the Camel > repository and use "feature:install camel-swagge

Cannot install camel-swagger through Karaf

2015-11-13 Thread Matt Sicker
I'm not sure where to report this bug: Karaf or Camel. When I add the Camel repository and use "feature:install camel-swagger", I get the following error: Error executing command: Can't install feature camel-swagger/0.0.0: Could not start bundle mvn:com.fasterxml.jackson.module/jackson-module-scal

Re: Consume messages & rollback

2015-11-13 Thread fxthomas
hello, Okay even if I use spring transaction, i still don't get it if the processing is fail safe even if I set Ack to false For example I have a route as below and even a dead letter channel configured. In the error handler I am logging the message in a DB in case if it was not delivere

Re: Start/Stop CamelContext

2015-11-13 Thread Claus Ibsen
Hi Yeah a full redeploy is safer. But if you only want to redeploy one or more routes. You would need to stop the route(s) then remove the route(s) and then add them again to the running camel context. There is API on CamelContext to do that from java code. On Fri, Nov 13, 2015 at 5:31 AM, Sashik

Re: sftp endpoint is not as performant as expected

2015-11-13 Thread Claus Ibsen
Hi Yeah the current changed read-lock afair don't keep state between polls. So we could look into one that does that, and do a full scan of all the files, and then do a change detect on all files all together and make up which ones hasn't changed. And that way can react faster than currently. Now

Re: sftp endpoint is not as performant as expected

2015-11-13 Thread pmmerritt
The 5 second check interval was something that I believe was introduced after 2.8.2. I don't see anything from the uri that would cause it either. We do explicitly set maxMessagesPerPoll however according to the documentation if not set it should default to unlimited, so that likely isn't the issue

Re: Pick latest file and ignore the remaining files for a given date

2015-11-13 Thread dwarakart
Awesome. Thanks a lot Claus for the quick response -- View this message in context: http://camel.465427.n5.nabble.com/Pick-latest-file-and-ignore-the-remaining-files-for-a-given-date-tp5773806p5773826.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Pick latest file and ignore the remaining files for a given date

2015-11-13 Thread Claus Ibsen
You can use the filter eip, and then if the batch index == 1 then only call the bean from filter batch index == 1 bean end On Fri, Nov 13, 2015 at 1:29 PM, dwarakart wrote: > Hi All, > > I have a camel route that is a file consumer and relies on the include > format with date and f

Re: Get Socket Status of Netty4 Route

2015-11-13 Thread Leomar
the producer definition is e.g. netty4:tcp://127.0.0.1:4021?clientMode=false&textline=false&?decoders=#plcDelimiterDecoder4&reuseAddress=false&sync=false -- View this message in context: http://camel.465427.n5.nabble.com/Get-Socket-Status-of-Netty4-Route-tp5773807p5773809.html Sent from the C

Get Socket Status of Netty4 Route

2015-11-13 Thread Leomar
Hi there, i`m currently working on a project with several Netty4 routes to several servers. For an overview i want to show all connected sockets. Is there a possibility to get all socket connections for the routes ? Or capture connection loss events etc. Greetings, Leomar -- View this mes

Pick latest file and ignore the remaining files for a given date

2015-11-13 Thread dwarakart
Hi All, I have a camel route that is a file consumer and relies on the include format with date and filename in it. The actual files arrive with an additional timestamp. The camel route is started and stopped dynamically. When the camel route starts, i need to pick the latest file which i can achi

Camel + SpringBoot + Endpoint Mocking

2015-11-13 Thread Kai Broszat
Hi, I want to test a complex route that involves sending messages to ActiveMQ and calling webservices with SpringWs. The route itself is working fine using spring-boot (1.2.7.RELEASE) and the camel-spring-boot plugin (2.16.0). Here are the important parts of the code: @Component public class My

Re: Spring-Boot + Camel + producerTemplate ssh spawning thousands of threads

2015-11-13 Thread Jakub Korab
This bit is definitely a bug. Whether it's something in the component, or the SshClient library needs to be investigated. You should log this one in a Jira. On 12/11/15 16:42, codan84 wrote: Indeed the ClientSession of SshClient is being started, but never finished. Here are logs: 2015-11-12

Re: Problem with bean method calls and parameter types

2015-11-13 Thread Antonin Stefanutti
Hi Ryan, The following Camel DSL: to("bean:beanClass?method=methodToCall(${body})") or bean(BeanClass.class, "methodToCall(${body})") Does not convert the body to String when the type of body corresponds to that of the first method parameter. Is there any step upfront in your route that may

Re: How to consume selected files from FTP endpoint?

2015-11-13 Thread Jack Frosch
Claus, I found I could filter the files using the “include" option on the FTP end points. Thank you for reminding this Camel noob that FTP extends File. For anyone interested: Using the Java fluent DSL, I was using something like this: from(“ftp:server/someFolder&logonOptions&move=.done")