Unit Test Polling Consumer

2018-03-02 Thread Karel Bernolet
Hello, --short version -- I am trying to unit test a route calling a polling consumer (currently a http endpoint) Unfortunately, mock endpoints do not support consumers. Is there an equivalent to mock endpoints to be used in case of a polling consumer? I currently replace the endpoint with a sed

Re: Using "PROPAGATION_REQUIRES_NEW" appears to create two new transactions instead of one

2018-01-10 Thread Karel Bernolet
Hello, Can this be a bug fix instead of a bug in the latest versions? Assuming your route executes in a transactional context, once it hits “PROPAGATION_REQUIRES_NEW”, a new transaction should always be created, hence you now have 2 transactions. At the end of your tests, successful transaction

Re: SFTP list of files

2017-07-05 Thread Karel Bernolet
Using the ftp component (see http://camel.apache.org/ftp2.html), you can avoid to download the files by setting download=false. As the ftp component extends the file component, you can retrieve the file name from the headers (see http://camel.apache.org/file2.html). The file component can serve as

JAXBException while parsing camel-spring files

2017-04-20 Thread Karel Bernolet
Hi, While upgrading a legacy application to camel 2.18.3, spring 4, ... we stumbled upon an issue while trying to parse camel routes in spring xml DSL. The stacktrace can be found below. I believe this is due to CAMEL-9521 . By removing the class o

Re: Running Same set of Camel routes (Camel Context) on multiple nodes

2016-05-17 Thread Karel Bernolet
Have you looked into the leader election integration pattern? I think camel-zookeeper and camel-hazelcast support it. On Tue, May 17, 2016 at 4:56 PM, Sherwin Pinto wrote: > Hi Yogesh, > > Thanks for your response. I am evaluating our options . Using quartz in a > clustered environment is defini

Re: I don't understand CXF Endpoints.

2015-06-23 Thread Karel Bernolet
You might want to have a look at the Content Enricher EIP with a Polling Consumer (pollEnrich). On Tue, Jun 23, 2015 at 8:00 PM, desenfoque wrote: > Hi... > > I have this route, the endpoint is a cxf webservice (soap) > > from("cxf:bean:servicioRecepcionNotas") > .convertBodyTo(Entra

Re: Idea on using Camel replaceFromWith for real routes

2015-06-23 Thread Karel Bernolet
why don't you just add a second and/or third clause in your original route? On Tue, Jun 23, 2015 at 4:32 AM, Gnanaguru S wrote: > Howdy, > > AdviceWith is one of the great feature for unit testing camel routes. If > some of its capabilities are available for the actua

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-16 Thread Karel Bernolet
The breadcrumbId you see is not the one from your service but the one for the Exchange created in your test. On Tue, Jun 16, 2015 at 3:23 PM, Alex Soto wrote: > Hi Willem, > > Thanks for the help; however I fail to understand why is the breadcrumbId > header present in the exchange during integ