Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:06 AM, Henrik Brautaset Aronsen wrote: > But in 2.16.0 it seems like .handle(..) isn't available anymore. Any > suggestions on how to mark this as handled now? > Sorry, typo. Obviously I mean .handled(boolean). Henrik

Re: camel-swagger-java model api not including nested objects

2015-10-12 Thread Claus Ibsen
How is your pojo class annotated? On Mon, Oct 12, 2015 at 4:53 AM, wheadonj wrote: > Hi, > > I have just upgraded my project to camel version 2.16.0 so I can use the new > camel-swagger-java component a specify header params in my swagger > documentation (which works

Re: Unstable test with camel-test-blueprint

2015-10-12 Thread Arnaud Deprez
Hi, I've updated my project to the latest camel 2.16.0 and the issue seems to be resolved. Keep in touch in case the problem occurs again. Thx for you support. Rgds, On Fri, Oct 9, 2015 at 5:26 PM Grzegorz Grzybek wrote: > I'm afraid you have to share the project then

Re: Unstable test with camel-test-blueprint

2015-10-12 Thread Grzegorz Grzybek
yeehaa! I'm happy it works for you. If you have more questions about blueprint, camel-test-blueprint or configadmin, just write me an email. regards Grzegorz 2015-10-12 9:26 GMT+02:00 Arnaud Deprez : > Hi, > > I've updated my project to the latest camel 2.16.0 and the

Re: Unstable test with camel-test-blueprint

2015-10-12 Thread Arnaud Deprez
Thanks ! :-) Have a nice day ! On Mon, Oct 12, 2015 at 9:50 AM Grzegorz Grzybek wrote: > yeehaa! > > I'm happy it works for you. > If you have more questions about blueprint, camel-test-blueprint or > configadmin, just write me an email. > > regards > Grzegorz > >

Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
This worked in 2.15.x: RoutesDefinition routeDef = someRouteDef(); routeDef.onException(someException) .wireTap(someUri) .newExchange(someProcessor) .end() .handle(true) .bean(someBean); But in 2.16.0 it seems like .handle(..) isn't available anymore. Any suggestions on how to

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Joakim Bjørnstad
Hello, onException(NullPointerException.class) .wireTap("someUri").end() .handled(true) .bean("someBean"); Allows you to return to the OnExceptionDefinition. Seems there was a change in 2.16.0 that makes newExchange and some other fluent builders to not return to the previous type in the

Validation XML route Definition

2015-10-12 Thread Fabrizio Spataro - Bizmate
Hello everyone, Can i validate a spring XML route definition before deploy it? I want to catch any syntactical error !! best regard fabrizio -- --- *Fabrizio Spataro* Software Development tel: *+39 095 388583* tel/fax: *+39 095

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:44 AM, Joakim Bjørnstad wrote: > onException(NullPointerException.class) > .wireTap("someUri").end() > .handled(true) > .bean("someBean"); > > Allows you to return to the OnExceptionDefinition. > > Seems there was a change in 2.16.0 that makes

camel-sjms, Batch Message support and InOut ?

2015-10-12 Thread Jimmy Selgen Nielsen
From what i can tell, the sjms component doesn’t support sending batch messages with the InOut ExchangePattern ? The InOnly producer seems to do it right, by casting the message body to a Collection, where the InOutProducer simply calls makeJmsMessage() I looked over the documentation, but

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Claus Ibsen
You need to end that would take you back to the onException. On Mon, Oct 12, 2015 at 10:09 AM, Henrik Brautaset Aronsen wrote: > On Mon, Oct 12, 2015 at 10:06 AM, Henrik Brautaset Aronsen > wrote: > >> But in 2.16.0 it seems like .handle(..) isn't available

Re: Warn message on startup due to deadLetterChannel used in route made in Spring Java Config

2015-10-12 Thread Hubertus.Willuhn
Hi, i push this post, because i got the exact same problem. Did somebody ever solve this or shouldn't i worry about the Warning? Thanks. -- View this message in context:

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:29 AM, Claus Ibsen wrote: > You need to end that would take you back to the onException. > Hi Claus, thanks for the swift reply. But I don't quite get what you're saying, could you give me an example? Henrik

Re: camel-swagger-java model api not including nested objects

2015-10-12 Thread wheadonj
The outer class (that has a List) has @ApiModel at the class level and @ApiModelProperty on the only field "someObjects". The SomeObject class has @ApiModel at the class level and @ApiModelProperty on all fields ("someObjectProperty1", "someObjectProperty2". All these annotations are in the same

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Joakim Bjørnstad
On Mon, Oct 12, 2015 at 11:46 AM, Henrik Brautaset Aronsen wrote: > On Mon, Oct 12, 2015 at 10:44 AM, Joakim Bjørnstad > wrote: > >> onException(NullPointerException.class) >> .wireTap("someUri").end() >> .handled(true) >> .bean("someBean"); >> >> Allows

How can i limit retrying CAMEL HTTP REQUEST (setting timeout and Redeliveries)?

2015-10-12 Thread zied123456
Hi I try to set timeout to 2 seconds and Redeliveries to 1 This is the route: http://URi"/> here by default the delievrry time is 3. How can i change this ? httpClient.soTimeout=100 dont work ! -- View this message in context:

Re: When original exchange "isDone" - with aggregator?

2015-10-12 Thread Joakim Bjørnstad
Hello, On Mon, Oct 12, 2015 at 4:40 PM, dermoritz wrote: > My route looks like this > > from( trigger ) > .routePolicy( new FinishNotifier( onFinsh ) ) > .to( in ).split().body() > .streaming() > .process(

Upgrade to 2.16.0

2015-10-12 Thread Fabrizio Spataro - Bizmate
Hello, i am upgrading my application from 2.15.3 to 2.16.0 but I have a strange error!! Can you help me? Caused by: org.apache.camel.RuntimeCamelException: java.lang.ClassCastException: org.apache.camel.model.WhenDefinition cannot be cast to org.apache.camel.model.FilterDefinition

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 12:35 PM, Joakim Bjørnstad wrote: > > Well right now it doesn't seem possible in that order, which is > unfortunate. > > Maybe you can consider changing the order in your exception handling? > Since you want to mark the failed exchange handled anyways. >

Re: Camel websocket disconnect trigger

2015-10-12 Thread kanu_t
Hi, I am new to Camel Websocket support, however, I too have this need to know if a client has disconnected from the server. This is necessary to clean up any session related data we might store for each client. For example which data feed a client is interested in. Otherwise, we have to implement

Re: Nett shared worker pool

2015-10-12 Thread Claus Ibsen
I think they are called EventLoopGroup now https://github.com/apache/camel/blob/master/components/camel-netty4/src/main/java/org/apache/camel/component/netty4/NettyServerBootstrapConfiguration.java#L95 But you can also check the netty 3 -> 4 migration guide, if they have any or netty 4 docs whats

Nett shared worker pool

2015-10-12 Thread Alex Soto
Hello, The documentation here http://camel.apache.org/netty4.html# refers to class org.jboss.netty.channel.socket.nio.WorkerPool however I can’t seem to find this class in anywhere. I am using Camel version 2.15.1. Is the class name correct? Best

Re: Nett shared worker pool

2015-10-12 Thread Alex Soto
I am trying to follow documentation to: Reusing Netty boss and worker thread pools with Netty4 component, but if the page is referring to Netty3, how would this work with Netty-4? Any pointers? Best regards, Alex soto > On Oct 12, 2015, at 10:03 AM, Claus Ibsen

Re: Nett shared worker pool

2015-10-12 Thread Alex Soto
Thank you Claus! I found good example in the unit test of camel-netty4 component. In case it helps anybody here is the fragment: http://camel.apache.org/schema/spring;> Best regards, Alex soto > On Oct 12, 2015, at 10:15 AM, Claus Ibsen

When original exchange "isDone" - with aggregator?

2015-10-12 Thread dermoritz
My route looks like this from( trigger ) .routePolicy( new FinishNotifier( onFinsh ) ) .to( in ).split().body() .streaming() .process( aggregationHeaderProcessor ) .aggregate( header( AggregationHeaderProcessor.ORDER_ID_HEADER ),

Re: Camel File component for writing files

2015-10-12 Thread Sashika
Stream seems to a perfect fit. Thanks Claus No to all - its how its designed. For new lines you need to add that into the message. The message is appended as-is. Take a look at the stream component that can keep the file open. http://camel.apache.org/stream On Mon, Oct 12, 2015 at 4:34 AM,

Re: Nett shared worker pool

2015-10-12 Thread Claus Ibsen
Its io.netty now. That link is for jetty 3.x On Mon, Oct 12, 2015 at 3:52 PM, Alex Soto wrote: > Hello, > > The documentation here http://camel.apache.org/netty4.html# > refers to class >

Re: Camel zookeeper is not creating the znode

2015-10-12 Thread Akram
Camel zookeeper component is not exactly creating the znode. I found something as below logs. Reading reply sessionid:0x100088b818d0024, packet:: clientPath:/WVI/temp/testx.txt serverPath:/WVI/temp/testx.txt finished:false header:: 1,5 replyHeader:: 1,154,-101 request::

Camel delay when computer disconnect

2015-10-12 Thread tammyABCD
I have a network of three computers, each computer has an ActiveMQ broker running (each one has a different queue). When all computers are connected, the delay between each one receiving the message in 5 seconds. If I stop the broker in any of them, the other queues connected will receive the

RE: Trouble getting AMQP going

2015-10-12 Thread Steve Huston
FYI, I got some advice from stackoverflow to change the bean id below from "amqpConnection" to "amqp" (matching the 'from' and 'to' prefixes in the route below) and that got me past this immediate problem. I submitted a JIRA for this issue. -Steve > -Original Message- > From: Steve