Re: Very Urgent - Camel direct component issue.

2017-02-08 Thread sari.reach
Anybody has an update on this -- View this message in context: http://camel.465427.n5.nabble.com/Very-Urgent-Camel-direct-component-issue-tp5792539p5793706.html Sent from the Camel - Users mailing list archive at Nabble.com.

CAMEL-5595 (Unrecognized SSL message, plaintext connection?)

2017-02-08 Thread Goyal, Arpit
As per the discussion [1], the work-around was given to add 'proxyAuthScheme=http4'. But there was also a fix done for 'CAMEL-5595', what is the fix really? Without the 'proxyAuthScheme' our HTTP calls using HTTP4 fails with - "Unrecognized SSL message, plaintext connection?" error message. St

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread souciance
The first one is probably doing a graceful shutdown so it waits until any inflight exchange is complete before it stops. You can decrease the timeout to less than 300 seconds if you want to. The two approaches do somewhat different things if I am not misstaken. The first one polls an ftp site for

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Christian Brunotte
Hello So I can either create a producer route with from("ftp://...";).converBodyTo(...).to("direct:result") and use String s = camel.createConsumerTemplate().receiveBody("direct:result", String.class); or I create a consumer route with from("direct:getFile").pollEnrich("ftp://...";).conve

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Christian Brunotte
Hello How can Guivanni's code be simplified further? -christian- Am Wed, 8 Feb 2017 12:56:51 +0100 schrieb Zoran Regvart : > Hi Christian, > something like that, but I would tie start/stop of Camel context with > the lifecycle of the application and use somewhat simpler code that > Giovanni sug

Netty4 HL7 - reject messages larger than a specified size

2017-02-08 Thread slew77
Hi, We are using netty4 and the camel hl7 codecs to read in hl7 messages. I would like to reject messages larger than a certain size, but I can't find an obvious way to do so. I was going to enable stream caching and add a processor to the route to check the size, but the codec produces a string

Skip Footer / Last Line

2017-02-08 Thread FoZi
I'm using apache camel in a routing context to integrate some CSV files. If I want to skip the first line of the csv I can easily do it in the unmarshal: My question is, whats the best way to ignore/skip the last line of the file ? Thank you in advance, FoZi -- View this mes

Re: possible duplication in spring boot example

2017-02-08 Thread Jean Francois LE BESCONT
I have open the CAMEL-10808. BTW come back to camel after few times and still so cool :) Great job and fabric8 just awesome ! Jeff 2017-02-08 17:08 GMT+01:00 Claus Ibsen : > Hi > > Yeah we should remove one of them and polished it a bit more. You are > welcome to log a JIRA > > On Wed, Feb 8, 2

Re: possible duplication in spring boot example

2017-02-08 Thread Claus Ibsen
Hi Yeah we should remove one of them and polished it a bit more. You are welcome to log a JIRA On Wed, Feb 8, 2017 at 4:29 PM, Jean Francois LE BESCONT wrote: > Hi, > > There are two examples : > > https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot > https://github.co

Re: SFTP get - chaining routes

2017-02-08 Thread Gabriel Kapitany
Thanks Claus, pollEnrich did the trick. Gabriel -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-get-chaining-routes-tp5793620p5793681.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XML DSL for File transfer to endpoint on Condition

2017-02-08 Thread vrlgohel
Hi Jayanta, Unless you are not making a connection to the Database from your processor code, you can try setting a property in the camel exchange and validating the result of that property with the result returned from the DB. So, something like this, from(file://someEndpoint). setProperty("name

Re: xpath 2.0?

2017-02-08 Thread Claus Ibsen
Take a look at camel-saxon On Wed, Feb 8, 2017 at 4:25 PM, Walzer, Thomas wrote: > Hi everyone, > > I would like to use xpath 2.0 expressions in Camel. Is there a way? ASFAIK > xpath in camel-core only supports xpath 1.0. > > Cheers, Thomas. > -- Claus Ibsen - http://davsclau

Re: possible duplication in spring boot example

2017-02-08 Thread Jean Francois LE BESCONT
For a simple java user like me, even the test classes create confusion. What is the best pratice ? @SpringBootTest(classes = SampleCamelApplication.class) or @SpringBootTest(classes = MySpringBootRouter.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) ? 2017-02-08 16:29 GMT+0

possible duplication in spring boot example

2017-02-08 Thread Jean Francois LE BESCONT
Hi, There are two examples : https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot-starter Which are very similar (POC of timer). After a winmerge of these two example and as a java camel user

xpath 2.0?

2017-02-08 Thread Walzer, Thomas
Hi everyone, I would like to use xpath 2.0 expressions in Camel. Is there a way? ASFAIK xpath in camel-core only supports xpath 1.0. Cheers, Thomas.

Re: decrypting with PGPDataFormat

2017-02-08 Thread Gary
thanks everyone for your help. I resolved this issue. It turned out that it was in 2 parts. this is with Camel 2.15.1 1) my customer was first sending encrypted files with no compression. And the Camel Release 2.15.1 requires compression. 1.1) it still didn't work. 2) It was discovered that the

swagger-ui disable in a different environment

2017-02-08 Thread redpower1989
Hello, The current application use this swagger http://camel.apache.org/swagger.html I was wondering if there is any easy way to disable swagger in production environment? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/swagger-ui-disable-in-a-different-environment

FINAL REMINDER: CFP for ApacheCon closes February 11th

2017-02-08 Thread Rich Bowen
Dear Apache Enthusiast, This is your FINAL reminder that the Call for Papers (CFP) for ApacheCon Miami is closing this weekend - February 11th. This is your final opportunity to submit a talk for consideration at this event. This year, we are running several mini conferences in conjunction with t

Re: Evaluate JsonPath on string inside a Map

2017-02-08 Thread souciance
Not sure if this is what you are after but I have done it this way: .when(PredicateBuilder.isEqualTo(ExpressionBuilder.languageExpression("jsonpath","$.Status"), "whatyouwantequalto")) The $.Status is a node in the json string. -- View this message in context: http://camel.465427.n5.nabble.c

Re: Removing headers

2017-02-08 Thread Claus Ibsen
Its using regular expressions so make sure that you use correct java reg exps. On Wed, Feb 8, 2017 at 1:53 PM, souciance wrote: > Hello, > > I am trying to remove headers like this: > > .removeHeaders("\\w+Accept\\w+", "\\w+Authorization\\w+", "\\w+Camel\\w+", > "\\w+Host\\w+", "\\w+Origin\\w+

Removing headers

2017-02-08 Thread souciance
Hello, I am trying to remove headers like this: .removeHeaders("\\w+Accept\\w+", "\\w+Authorization\\w+", "\\w+Camel\\w+", "\\w+Host\\w+", "\\w+Origin\\w+", "\\w+Postman\\w+", "\\w+Connection\\w+", "\\w+Content-Length\\w+", "\\w+Content-Type\\w+", "\\w+VALID_SIP2\\w+" , "\\w+SIP2_MESSAGE_RABBITMQ

Re: Evaluate JsonPath on string inside a Map

2017-02-08 Thread Frank Wein
Frank Wein wrote: Hi all, I wonder how I can achieve the following: I want to evaluate a JsonPath predicate in a when() expression on a string, which is inside a Map/MapMessage. If possible, this should be done with the Camel Java DSL. The original message should not be modified, I only want t

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Zoran Regvart
Hi Christian, something like that, but I would tie start/stop of Camel context with the lifecycle of the application and use somewhat simpler code that Giovanni suggested, zoran On Wed, Feb 8, 2017 at 11:57 AM, Christian Brunotte wrote: > Hello Zoran > > So what you propose is (in pseudocode): >

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Condello, Giovanni
Hi, There's no need for two routes, unless your use case is more complex than the example you provided. You can just use something like this: context.start(); /* Now camel is ready */ ProducerTemplate template = context.createProducerTemplate(); String result = template.requestBody("direct:bla

Re: Kafka Producer Serialization Error

2017-02-08 Thread Ravindra Godbole
I am also not able to understand the error but after this change it works. .routeId(routeId).marshal().json(JsonLibrary.Jackson, Map.class).convertBodyTo(String.class) On Wed, Feb 8, 2017 at 4:26 AM, Webster wrote: > I am new to camel and kafka. > I am using Camel 2.18.2 with Kafka 0.10.1.1 > >

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Christian Brunotte
Hello Zoran So what you propose is (in pseudocode): RouteBuilder builder = new RouteBuilder() { from("direct:start") .enrich("file://src/main/resources/inputs/test.txt") ... .to("direct:result"); } CamelContext camel = new DefaultCamelContext(); camel.addRoutes(si

Evaluate JsonPath on string inside a Map

2017-02-08 Thread Frank Wein
Hi all, I wonder how I can achieve the following: I want to evaluate a JsonPath predicate in a when() expression on a string, which is inside a Map/MapMessage. If possible, this should be done with the Camel Java DSL. The original message should not be modified, I only want to evaluate the Jso

Camel XML DSL for File transfer to endpoint on Condition

2017-02-08 Thread j_pramanik_ind
Hi All, Is there any mechanism to handle file transfer from source folder to target endpoint on the basis of specific condition ? In my case I'm using Apache Camel 2.14.2 version in my application to handle incoming files for its processing. I need to check a condition through java code in databas

Re: Camel filter didn't work

2017-02-08 Thread shubho
Now i am getting this error 14:43:53,236 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-7) Context initialization failed: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route rout3: Route

Re: Camel filter didn't work

2017-02-08 Thread shubho
yes you are right..i find the missing jar for spring. But still i am getting error.I think its beacause of camel. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-filter-didn-t-work-tp5793594p5793644.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using Camel to quickly execute just one route?

2017-02-08 Thread Zoran Regvart
Hi Christian, bare in mind that you can have control if you use direct component, so having Camel context/routes started, doesn't mean that it needs to poll in the background, you can do that on demand, HTH, zoran On Tue, Feb 7, 2017 at 10:56 PM, Christian Brunotte wrote: > Hello > > I'd like t