Re: Problem using include with regexp

2015-08-09 Thread Claus Ibsen
Hi You can use the raw() syntax http://camel.apache.org/how-do-i-configure-endpoints.html On Sun, Aug 9, 2015 at 2:58 AM, Claudio R wrote: > Hi, > I am trying execute the java code below to process only files with name > (n20.xml, n25.xml etc) > > from("file:c:/camel/src/data?delete=true&includ

Re: Skip duplicate records from CSV when loading to database

2015-08-09 Thread Christian Müller
Why is the MessageIdempotent repository not working for you? http://camel.apache.org/idempotent-consumer.html Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https:/

Re: How many JMS transactions within a route?

2015-08-09 Thread Christian Müller
Why want you use XA when you are talking to only one resource? Camel creates one transaction per transacted route and consumer (as every consumer is using its own thread). What do you expect instead? Best, Christian - Software Integration Specialist Apache Member V.P. Apache Cam

Re: action at the end of the split

2015-08-09 Thread Christian Müller
What do you mean with "is out of scope"? You can use the message header to get this information. 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

Re: Camel XPath....Parsing a part of message Body...

2015-08-09 Thread Christian Müller
I suggest adding the camel-saxon dependency and use: /CamelData/Provider/text() 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/christia

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

2015-08-09 Thread Christian Müller
https://issues.apache.org/jira/browse/CAMEL-8639 will be fixed with Camel 2.16.0 and 2.15.3. This means you should use these SNAPSHOT versions, not 2.14.4-SNAPSHOT... Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Ap

Re: Choice with xpath

2015-08-09 Thread Christian Müller
I suggest adding the camel-saxon dependency and use: ... 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 O

Re: Issue with SetHeader / Xpath

2015-08-09 Thread Christian Müller
I suggest adding the camel-saxon dependency and use: ... 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 O

Re: Parsing a XML in DSL

2015-08-09 Thread Christian Müller
You should use Saxon for many reasons... I suggest adding the camel-saxon dependency and use: /CamelData/Provider/text() Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Mem

Construct Dynamic URI

2015-08-09 Thread anish.somadevan
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.Provider} but when i use i don't get any error, but the HTTP call is not being made. https://something.com{header.Provier} Am using

smb endpoint - modified files not copied to destination

2015-08-09 Thread hayden74
Hi Camel experts. The issue I am facing is that Camel doesn't seem to copy a modified file after being copied the first time to its destination. The route used is: from("smb://networkDriveOne?noop=true&fileName=inputFile.csv") .to("smb://networkDriveTwo?fileExist=Override") When Camel is resta

Re: Construct Dynamic URI

2015-08-09 Thread Raul Kripalani
Yes, it's possible. But the to EIP is not dynamic. You need to use instead. *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @r

Re: How many JMS transactions within a route?

2015-08-09 Thread kov
Thanks; to be clear, I'd prefer not to use an XA transaction here, but I'd also like to consume from q1 and publish to q2 in a single transaction, that's why I asked if an XA transaction was the only choice, even when I'm communicating over a single JMS message bus. Mostly just trying to understan

Re: action at the end of the split

2015-08-09 Thread Wilson MacGyver
public class SplitTest extends CamelTestSupport { @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint; @Produce(uri = "direct:testSplit") protected org.apache.camel.ProducerTemplate template; @Test public void testWithString() throws Exception{