unable to load properties file in jboss fuse 6.2

2015-08-10 Thread chaituu
not able to find below properties file(FilenotFound Exception) when i create the profile using fabric8:deploy plugin and then assign to the new container in JBoss fuse-6.2. normally where to place common properties in camel applications when we create fuse fabric profiles. below properties file fou

Re: action at the end of the split

2015-08-10 Thread Christian Müller
You can do this by using a custom AggregationStrategy. I can provide an example tomorrow... Best, Am 10.08.2015 22:50 schrieb "Wilson MacGyver" : > I'm sorry my message isn't clear. I've read the docs and the chapter that > deal with this in the camel book. The issue I have isn't with the each ti

RE: Camel CXF cannot be loaded to Karaf 4.0.0

2015-08-10 Thread bocamel
Hi Christian, Thank you for your response. The reason why we have to use CXF 3.1.1 is that the previous versions of CXF do not allow the disablement of SSLv3 while still supporting Java 1.6 clients who have to use SSLv2Hello. In CXF 3.1.1, a feature was added so that the server can disable S

Re: action at the end of the split

2015-08-10 Thread Wilson MacGyver
I'm sorry my message isn't clear. I've read the docs and the chapter that deal with this in the camel book. The issue I have isn't with the each time part. It's the final log part after the split is done. My goal is after the end of the split block to send an email logging the total number updates

Re: How to validate json schema by using camel avro

2015-08-10 Thread Christian Müller
Apache Camel Avro doesn't provide a validation option/feature. You have to check how Avro handle it. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.link

Re: action at the end of the split

2015-08-10 Thread Christian Müller
http://camel.apache.org/splitter.html Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Mon, Aug 10, 2015

Re: action at the end of the split

2015-08-10 Thread Christian Müller
Sure, that's how stream works. We do not load the entire payload into memory. Why don't you use the property CamelSplitIndex? In this case, the output will be [Test worker] INFO route1 - each time 0 [Test worker] INFO route1 - each time 1 [Test worker] INFO route1 - each time 2 Best, Christian

Re: How many JMS transactions within a route?

2015-08-10 Thread Christian Müller
You can read more about the supported cache options here [1], but CACHE_CONSUMER is the best option in your case. XA is not needed, because you only interact with one resource/broker. I'm not sure whether we have to have two JMS sessions here. May be an JMS expert can answer this question... [1] h

Re: Camel CXF cannot be loaded to Karaf 4.0.0

2015-08-10 Thread Christian Müller
Apache Camel 2.15.2 was build and tested with CXF 3.0.4 [1] - and not 3.1.1. Any reason why you have to use CXF 3.1.1? Camel 2.16.0 will use CXF 3.1.2 (or later) [2]. [1] https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=parent/pom.xml;h=f2b12514025554cdca72f32f3c78df32cf890526;hb=f27c

Camel CXF cannot be loaded to Karaf 4.0.0

2015-08-10 Thread bocamel
Just a heads up. Tried the latest Karaf 4.0.0. Cannot load camel-cxf feature (Camel 2.15.2/CXF 3.1.1). Below is the error - looks like someone needs to bump up Jetty dependency. karaf@root()> feature:repo-add cxf 3.1.1 Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features k

Re: Construct Dynamic URI

2015-08-10 Thread anish.somadevan
Worked like a charm. Thanks a lot :) -- View this message in context: http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500p5770533.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SFTP - Twice as many retries as specified in maximumReconnectAttempts

2015-08-10 Thread IgnatiusReilly
Thanks Christian, you are right. My bad. I will try to use one of those snapshots. Regards -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-Twice-as-many-retries-as-specified-in-maximumReconnectAttempts-tp5770168p5770532.html Sent from the Camel - Users mailing list arc

camel-cxf: Accessing Camel headers/properties in CXF interceptor on exception

2015-08-10 Thread Jens
Hi, I have a CXF endpoint with a CXF interceptor that inspects properties from the Camel exchange in order to do its job. In the "good" case everything works fine: The properties/headers get set somewhere in the Camel route, and when the route finishes, the CxfBinding propagates them to the CxfExc

Re: Logging Error in Message or Exchange in DB (Not getting the exception in Processor)

2015-08-10 Thread Claus Ibsen
Yes the error handler / onException only routes when exhausted. On Mon, Aug 10, 2015 at 2:06 PM, fxthomas wrote: > okay, worked Like a Charm. > > Just a question, the ErrorProcessor will be called once only after the > redelivery policy limit is exhausted I hope not for every re delivery. > > >

Re: Logging Error in Message or Exchange in DB (Not getting the exception in Processor)

2015-08-10 Thread fxthomas
okay, worked Like a Charm. Just a question, the ErrorProcessor will be called once only after the redelivery policy limit is exhausted I hope not for every re delivery. -- View this message in context: http://camel.465427.n5.nabble.com/Logging-Error-in-Message-or-Exchange-in-DB-Not-getting-

Re: Logging Error in Message or Exchange in DB (Not getting the exception in Processor)

2015-08-10 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html On Mon, Aug 10, 2015 at 1:19 PM, Felix Thomas wrote: > Hello, > > I tried the Below error Handling using DeadLetterChannel , but > currently I am not getting the exception or error in my processor

Logging Error in Message or Exchange in DB (Not getting the exception in Processor)

2015-08-10 Thread Felix Thomas
Hello, I tried the Below error Handling using DeadLetterChannel , but currently I am not getting the exception or error in my processor . I want to log in DB the message along with the reason it failed , for example JDBC exception, Null pointer exception , data Validation exception in some

Re: JMX statistics problem with onException()

2015-08-10 Thread Claus Ibsen
Hi Its only processors in routes that gets enlisted in JMX. On Wed, Jul 29, 2015 at 11:26 AM, Bharath wrote: > Hi, >I am trying to use one processor in OnException as below > > onException(ValidationException.class) > .handled(true) > .process(filesFaile

ahc-ws

2015-08-10 Thread Sanjana
Hello, I am using ahc-ws to send messages a server. I have done it like this - http://camel.apache.org/schema/spring";> In the transform method of hcpTr

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread hayden74
Thanks Claus. Yes the file name will always be the same (eg: inputFile.csv). Only the directory name is dynamic. I will give it a go tomorrow at work. Thanks for you help. On Mon, Aug 10, 2015 at 7:46 PM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5770522...@n5.nabble.com> wrote: > Hi > > Yeah

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread Claus Ibsen
Hi Yeah you can filter by fileName actually. Though this would require the file to be named inputFile.csv On Mon, Aug 10, 2015 at 10:45 AM, hayden74 wrote: > So basically change the route to: > > from("smb://networkDriveOne/"?noop=true&fileName=${date:now:ddMM}/inputFile.csv&recursive=true")

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread hayden74
So basically change the route to: from("smb://networkDriveOne/"?noop=true&fileName=${date:now:ddMM}/inputFile.csv&recursive=true") .to("smb://networkDriveTwo?fileExist=Override") -- View this message in context: http://camel.465427.n5.nabble.com/smb-endpoint-modified-files-not-copie

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread Claus Ibsen
No you cannot do dynamic inputs. However you can input from the root folder where those dirs are, and use the filter option to filter to only include the directory of todays date. Then you need to use the recursive=true option. And you can use maxDeep to limit going down too far. For the filer opt

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread hayden74
Many thanks Claus. I've tried to simply the scenario and ended up asking the wrong question. My bad. The input directory in my scenario changes daily based on the date. So the route looks like this: string todaysDateStr = "01-01-2015"; //this value changes based on the current date from("smb://

Re: smb endpoint - modified files not copied to destination

2015-08-10 Thread Claus Ibsen
That is expected, noop=true means do not copy the file ever again. You need to use an idempotent repository where you store the key with the file name and timestamp so the repo can know if its the same file or a changed file. btw its often much better to either delete or move the files after you h

Re: donefilename behavior change

2015-08-10 Thread urgy
Thanks Claus. I'll check it out. Regards -- View this message in context: http://camel.465427.n5.nabble.com/donefilename-behavior-change-tp5770446p5770490.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Construct Dynamic URI

2015-08-10 Thread Claus Ibsen
See this FAQ http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html On Sun, Aug 9, 2015 at 11:52 PM, anish.somadevan wrote: > Am trying to construct a dynamic URI using a value from header > > When i use in it is not recognizing the value as a header > > https://something.com/{$header.Provi

Camel multicast() with aggregationStrategy() ...

2015-08-10 Thread SteveR
I have a Camel route that consumes from *netty:udp* and uses the *multicast() *DSL method to multicast to several different destinations (i.e. Camel throughput logger, local backup file, a SEDA queue that produces to Kafka, and another SEDA queue on a route that contains a UdpAckBack processor that

How to validate json schema by using camel avro

2015-08-10 Thread nagak
I successfully tested Camel Rest Service in json format.Now i want to validate json format by using camel avro.Please provide me your guidelines. Regards, Naga -- View this message in context: http://camel.465427.n5.nabble.com/How-to-validate-json-schema-by-using-camel-avro-tp5770506.html Sen