[CAMEL-CDI] What's is the CDI scope for the RouteBuilder?

2016-03-23 Thread Charlee Chitsuk
Hi, Regarding to the Camel CDI [1] which mentions that it provides the Auto-detecting Camel routes. I would like to know what the CDI scope of that RouteBuilder is. Is it @ApplicationScoped? [1] http://camel.apache.org/cdi.html -- Best Regards, Charlee Ch.

Re: onException not working

2016-03-23 Thread Claus Ibsen
Camel uses slf4j-api so you can configure it to use any other logging library you use. http://www.slf4j.org/manual.html On Thu, Mar 24, 2016 at 4:10 AM, mayur_bm wrote: > Thank you :) > > if i mention like " java.lang.Exception" in > onException, does it handles all kind of exceptions derived fr

Re: onException not working

2016-03-23 Thread mayur_bm
Thank you :) if i mention like " java.lang.Exception" in onException, does it handles all kind of exceptions derived from it?( for ex: NullPointerException, IOException etc) here my application already has logging framework, i want to redirect all Camel Traces in to same trace files created by m

security requirement using swagger java

2016-03-23 Thread Tim Dudgeon
Hi Is it possible to specify swagger security requirements (http://swagger.io/specification/#securityRequirementObject) using the swagger java component? I can't figure it out and can't find any examples. Tim

RE: Quartz schedule too many workers in route

2016-03-23 Thread Hans Orbaan
Hi, The only way I have found to make sure a file or ftp component does not use multiple threads while consuming very large batches is to annotate the QuartzScheduledPollConsumerJob class with @DisallowConcurrentExecution. That’s it. It seems to work for us. I am not familiar enough with the Ca

Re: XSLT in Camel not working as expected

2016-03-23 Thread contactreji
Hey. I got the fix. I just added xalan dependency in my pom file and it worked.!! xalan xalan 2.7.1 Cheers Reji - Reji Mathews Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Cam

XSLT in Camel not working as expected

2016-03-23 Thread contactreji
Hey guys I am trying to remove duplicates from a sorted xml based on an attribute value. XSLT code pasted below. I tested this xslt code in OxygenXMLEditor tool and this very same code seems to be working absolutely fine. But to my surprise, its not removing the duplicates when using camel xslt c

Re: Preserve some headers after splitting a collection

2016-03-23 Thread Alberto
Yes, I'm sorry for the noise. My mistake! Alberto On Wed, 2016-03-23 at 06:57 -0600, Quinn Stevenson wrote: > Unless I’m missing something, you should be able to just split the > collection > > .unmarshal( beanioFormat ) > .split( body() ) > > .end() > > The exchanges should have all the

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

2016-03-23 Thread fxthomas
Solved the issue , using a custom logic in processor . So it works fine. currently Only problem was that the Stop processor thread was taking time to shutdown route. So added a delay to counter that. Thanks all for the inputs. -- View this message in context: http://camel.465427.n5.nabble.c

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

2016-03-23 Thread Claus Ibsen
On Tue, Mar 22, 2016 at 1:30 PM, fxthomas wrote: > 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. > Ah okay so you want to st

[Ann] Java Conference in Barcelona : JBCNConf

2016-03-23 Thread Jonathan Vila Lopez
Hi guys !!! As the last year we had very good results with our Java conference in Barcelona, this 2016 we've repeated the experience. www.jbcnconf.com So, we would really need that people send us Papers to talk in it, and obviously if you want to listen to good ( and not comercial) talks, do a g

Re: onException not working

2016-03-23 Thread Quinn Stevenson
I don’t think you can handle route creation exceptions in the route builder - Camel is still constructing the route, so the route builder really can’t handle that type of exception. Have you tried your route when you get an exception while processing an exchange? It looks like it would work fo

Re: Apache camel. InterceptSendTo doesn't work with bean endpoint

2016-03-23 Thread Quinn Stevenson
Have you tried overriding isUseAdviceWith in your test? It’s mentioned in the docs http://camel.apache.org/advicewith.html > On Mar 22, 2016, at 5:14 AM, aturkin wrote: > > I can't understand why my tests don't work. I try intercept and skip sending

Re: Preserve some headers after splitting a collection

2016-03-23 Thread Quinn Stevenson
Unless I’m missing something, you should be able to just split the collection .unmarshal( beanioFormat ) .split( body() ) .end() The exchanges should have all the headers from the original message preserved. > On Mar 23, 2016, at 3:24 AM, Alberto wrote: > > > Hello, > > I'm unable to f

camel-spring-boot does not work with consumer.bridgeErrorHandler

2016-03-23 Thread quangpn
I use camel-spring-boot and have a route which consumes file from a FTP folder. I set consumer.bridgeErrorHandler=true and throwExceptionOnConnectFailed=true so that I can handle errors by my routing Error Handler. Unfortunately I get error: brokerjava_1 | 2016-03-23 10:30:06.510 ERROR 42

Preserve some headers after splitting a collection

2016-03-23 Thread Alberto
Hello, I'm unable to figure how to propagate some headers during a split. I have a route like this: ... .unmarshal(beeanioFormat) .split() .body() ... BeanIO dataformat returns a collection of pojos. I have to split this collection to obtain single pojos and propagate some headers pres

onException not working

2016-03-23 Thread mayur_bm
Hi, i have onException configured for my camel context, which has couple of routes. i have configured onException as below: java.lang.Exception true ${exception.stacktrace} here since my component uses

RE: Quartz schedule too many workers in route

2016-03-23 Thread Hans Orbaan
Hi Claus, Did you have a chance to check this already? I really think file and ftp consumers should never use multiple threads unless explicitly defined. This means a from(file://) with a quartz schedule should be stateful by default. Only then would it have the same behaviour as spring schedul