redeliveries not working for rabbitmq endpoint

2018-04-09 Thread Geldhof, Kristof
Hello, I have a flow where messages are put in a blocking queue (seda) and from that queue messages are sent to a RabbitMQ exchange. If the message cannot be put in the queue (e.g. because it has reached its maximum size) an IllegalStateException is thrown. I catch this exception and throw a cu

Consuming 1 file at a time in camel route

2018-04-09 Thread Hemant Pekhale
Hi, I want to consume file one by one from a directory. Second file must not be picked until the route completes the processing of first file. Which approach I can use?

Re: Consuming 1 file at a time in camel route

2018-04-09 Thread Claus Ibsen
Hi This is what happens today by default with the Camel file component. On Mon, Apr 9, 2018 at 2:42 PM, Hemant Pekhale wrote: > Hi, > > I want to consume file one by one from a directory. Second file must not be > picked until the route completes the processing of first file. > > Which approach

Re: Consuming 1 file at a time in camel route

2018-04-09 Thread Hemant Pekhale
Hi Claus, Thanks for the quick response. My route is picking a file and and posting on a web service. What is happening is webservice taking time to return response and I don't want to send another request until the response of first request is not received. But this is not happening. Route is p

Re: Consuming 1 file at a time in camel route

2018-04-09 Thread Hemant Pekhale
FYI : I am using cxf to post on webservice On Mon, Apr 9, 2018 at 7:12 PM, Hemant Pekhale wrote: > Hi Claus, > > Thanks for the quick response. My route is picking a file and and posting > on a web service. What is happening is webservice taking time to return > response > and I don't want to s

Re: Consuming 1 file at a time in camel route

2018-04-09 Thread Claus Ibsen
Set synchronous=true on the cxf endpoint On Mon, Apr 9, 2018 at 3:43 PM, Hemant Pekhale wrote: > FYI : I am using cxf to post on webservice > > On Mon, Apr 9, 2018 at 7:12 PM, Hemant Pekhale > wrote: > >> Hi Claus, >> >> Thanks for the quick response. My route is picking a file and and posting

Re: Consuming 1 file at a time in camel route

2018-04-09 Thread Hemant Pekhale
Hi Claus, Thanks for the solution. It worked perfectly as expected. Thanks! On Mon, Apr 9, 2018 at 7:21 PM, Claus Ibsen wrote: > Set synchronous=true on the cxf endpoint > > On Mon, Apr 9, 2018 at 3:43 PM, Hemant Pekhale > wrote: > > FYI : I am using cxf to post on webservice > > > > On Mon,

Logging in Apache camel

2018-04-09 Thread gokuljayaraj
Hello everyone, So we have multiple camel routes that are configured by logback to log into separate log files. Is there a way to specify a logger into the route itself? The reason I ask is because, when switched to debug, everything other than what we explicitly log from our logger seems t

Re: Logging in Apache camel

2018-04-09 Thread Claus Ibsen
Hi You can take a look at MDC logging http://camel.apache.org/mdc-logging On Tue, Apr 10, 2018 at 8:42 AM, wrote: > Hello everyone, > > > > > So we have multiple camel routes that are configured by logback to log into > separate log files. Is there a way to specify a logger into the route itse