Camel JPA batch INSERT example with collection or list

2016-03-22 Thread raffi
Looking for an example showing how to INSERT collection or list of objects using Camel JPA endpoint. I read somewhere (can't find link) if the type argument for JPA is Collection, JPA automatically performs a batch INSERT on the objects in the list; is that accurate? -- View this message in

java.lang.IndexOutOfBoundsException in DefaultCxfBinding.java when receiving null HTTP header

2016-03-22 Thread bocamel
I am running Camel 2.15.5 and CXF 3.1.5. I have a CXF consumer endpoint that receives requests in MESSAGE data format. I ran into the following error whenever a client sent in a request with a null HTTP header (i.e. a header name is specified but there is no value. It can be any header, e.g. SOA

Re: Problem with CXF Payload Dataformat and Camel 2.16.1

2016-03-22 Thread Joseph Kampf
Can someone acknowledge that this is a problem or that I am missing something? Thanks, Joe From: "joseph.ka...@gmail.com" Date: Monday, March 21, 2016 at 11:17 AM To: Subject: Re: Problem with CXF Payload Dataformat and Camel 2.16.1 Another look at this, the problem might have been introd

Re: problem with exception in the recipientList

2016-03-22 Thread nuskhu
here is the code: public class AggregationSimple implements AggregationStrategy { /** Logger de la classe. */ private static final Logger LOGGER = Logger.getLogger(AggregationSimple.class); public Exchange aggregate(final Exchange pOldExchange, final Exchange pNewExchan

Re: problem with exception in the recipientList

2016-03-22 Thread Claus Ibsen
What is your aggregation strategy source code. It depends how you handle it there. S On Tue, Mar 22, 2016 at 2:38 PM, nuskhu wrote: > It's a valid endpoint, it's just throwing an exception to check the behaviour > of the recipiantList : > > @Component > public class ThrowingConsumerB { > > pr

Re: problem with exception in the recipientList

2016-03-22 Thread nuskhu
It's a valid endpoint, it's just throwing an exception to check the behaviour of the recipiantList : @Component public class ThrowingConsumerB { private static final Logger LOGGER = LoggerFactory.getLogger(ThrowingConsumerB.class); public String sayHello(@Body String message) { L

Re: problem with exception in the recipientList

2016-03-22 Thread Claus Ibsen
No there is an option to ignore invalid endpoints you need to turn on http://camel.apache.org/recipient-list.html On Tue, Mar 22, 2016 at 2:11 PM, nuskhu wrote: > hi, > I think that i meet a problem with the recipientList when an endpoint throw > an exception. > > this code work : > > from("di

Re: Getting NO Messege Reader Exception with cxf 2.6.1,Please give me the direction to move forward

2016-03-22 Thread Ram@dstws
I have resolved this issue while adding below dependency org.apache.cxf cxf-rt-rs-extension-providers 2.6.1 -- View this message in context: http://camel.465427.n5.nabble.com/Getting-NO-Messege-Reader-Exception-with-

problem with exception in the recipientList

2016-03-22 Thread nuskhu
hi, I think that i meet a problem with the recipientList when an endpoint throw an exception. this code work : from("direct:rlAggregate").process( new Processor() { String destinations = "bean:throwingExceptionConsumerB, bean:consumerC";} }) .recipientList(header("destinations

RE:Not move file on custom exception thown (file component)

2016-03-22 Thread Ouazzani Nabil
Hello, You can create a processor which moves the file where your want after the first move (the one that you don't want) has been done, or maybe you don't want the first move to be done at all? Nabil Ouazzani De : fxthomas [felix.tho...@gmail.com] Envo

URI contains unsafe characters

2016-03-22 Thread Marco Crivellaro
Hi, when using the below URI Camel is logging a warning: ftp://user@host:21//?binary=false&disconnect=true&eagerDeleteTargetFile=false&fastExistsCheck=true&fileExist=Override&ftpClient.connectTimeout=3&ftpClient.dataTimeout=3&ftpClient.defaultTimeout=3&passiveMode=false&password=aPass&

RE: Not move file on custom exception thown (file component)

2016-03-22 Thread fxthomas
Do you mean in runtime change the permission depending on the exception raised. I dont think it will be possible to change in between with a camel lock in place on that file. I could try though ! -- View this message in context: http://camel.465427.n5.nabble.com/Not-move-file-on-custom-except

RE: Not move file on custom exception thown (file component)

2016-03-22 Thread Hans Orbaan
Hi, Can't you change the permissions of the file to avoid it being written/moved? With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: fxthomas [mailto:felix.tho...@gmail.com] Verzonden: Tuesday 22 March 2016 13:31 Aan: users@camel.apache.org Onderwerp: Re: Not move file on cu

Re: Not move file on custom exception thown (file component)

2016-03-22 Thread fxthomas
you are right Claus ! . But I stop the route to avoid that problem (if you see the stop processor). There will be manual intervention to handle this exception , thats why i have to keep the file at the same place. -- View this message in context: http://camel.465427.n5.nabble.com/Not-move-file

Re: Not move file on custom exception thown (file component)

2016-03-22 Thread Claus Ibsen
On Tue, Mar 22, 2016 at 1:00 PM, fxthomas wrote: > hello, > > I have a below route configuration, my problem is that I don't want camel > to move the file to error Or complete folder incase i throw a custom > exception while processing . But currently it moves the file to complete or > error if

Not move file on custom exception thown (file component)

2016-03-22 Thread fxthomas
hello, I have a below route configuration, my problem is that I don't want camel to move the file to error Or complete folder incase i throw a custom exception while processing . But currently it moves the file to complete or error if I handle the exception true/false. Is there a way to make ca

Apache camel. InterceptSendTo doesn't work with bean endpoint

2016-03-22 Thread aturkin
I can't understand why my tests don't work. I try intercept and skip sending to endpoint which is bean reference and nothing happens. I'm using version 2.16.2. test-camel.xml http://camel.apache.org/schema/spring";> EndpointBean.java package com.renc

Re: Two potential issues with camel-mina2 component

2016-03-22 Thread Claus Ibsen
On Tue, Mar 22, 2016 at 9:06 AM, Thomas Papke wrote: > Hello all, > > I want to share my findings regarding the camel-mina2 component (camel > 2.16.2). From my understanding, both of them are bugs, but maybe someone > could provide a feedback and/or create a jira ticket. > > > 1. Thread le

Re: [Observation] Endpoint URI options ordering

2016-03-22 Thread Claus Ibsen
No this is by design the parameters is ordered. On Tue, Mar 22, 2016 at 8:54 AM, Mithu Tokder wrote: > Hi, > I have one question regarding the options provided in endpoint URI. > I have the following URI in the from() method in my java DSL > > ftp://myserver/data/?*username*=xx&*password*=xx&*m

Two potential issues with camel-mina2 component

2016-03-22 Thread Thomas Papke
Hello all, I want to share my findings regarding the camel-mina2 component (camel 2.16.2). From my understanding, both of them are bugs, but maybe someone could provide a feedback and/or create a jira ticket. 1. Thread leak for camel-mina2 consumers The camel-mina2 consumer (org.apache.

[Observation] Endpoint URI options ordering

2016-03-22 Thread Mithu Tokder
Hi, I have one question regarding the options provided in endpoint URI. I have the following URI in the from() method in my java DSL ftp://myserver/data/?*username*=xx&*password*=xx&*move* > =../archive/${date:now:MMdd}/${file:onlyname.noext}_${date:now:MMdd}.${file:ext} where the URI op