Re: DirectProducer - no consumers available on endpoint

2012-04-27 Thread Willem Jiang
You can use ProducerTemplate.requestBody(...) to send the request. And you can get the exception automatically. On Sat Apr 28 10:27:28 2012, Danny wrote: Willem, Is there a higher level way to achieve the call? On Apr 27, 2012 10:04 PM, "Willem.Jiang [via Camel]"< ml-node+s465427n567193...@n5.na

Re: DirectProducer - no consumers available on endpoint

2012-04-27 Thread Danny
Willem, Is there a higher level way to achieve the call? On Apr 27, 2012 10:04 PM, "Willem.Jiang [via Camel]" < ml-node+s465427n567193...@n5.nabble.com> wrote: > Just one comments for why you got the NPE from the out message of the > exchange. > > As you are using a low level send API of the Produ

Re: DirectProducer - no consumers available on endpoint

2012-04-27 Thread Willem Jiang
Just one comments for why you got the NPE from the out message of the exchange. As you are using a low level send API of the ProducerTemplate, you need to check if the Exchange is failed before you try to access the response message from the exchange. On 4/28/12 2:22 AM, Danny wrote: Try t

Re: DirectProducer - no consumers available on endpoint

2012-04-27 Thread Christian Müller
The DirectProducer is used, if you send an exchange to "direct:xxx". Your CreateAssetsProcessor use the producer template and send an exchange to the direct endpoint. Does you have a consumer listing on this endpoint? And you should create the producer template from the incoming exchange: exchange

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-09 Thread Stephen Gargan
Is there any way that the consumer on direct:decode could be getting stopped. This is the only way that you could get the No Consumers error. If you could boil the issue down into a unit test it would really help. One thing you might try is to avoid sending messages from the error queue while the

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-09 Thread boday
Sorry, please ignore my typos in the route (I use constants for all endpoints, but tried to simplify it for the post). Does "no consumers available" mean the route isn't active or that there aren't any available threads? Also, where does the message go exactly? Is there a way to handle this cas

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread Claus Ibsen
Hi You need to configure the startup order of your routes so the timer is the last one to be started http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html On Mon, Mar 8, 2010 at 11:27 PM, boday wrote: > > I have a polling consumer setup to periodically (using camel-tim

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread Willem Jiang
Hi, I just checked the code of DirectProducer , DirectConsumer, DirectEndpoint, the code should be thread safe, unless you stop the route dynamically. So please check if you choice a right director endpoint name first. Willem Stephen Gargan wrote: Not to harp about the endpoint uri but I ju

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread Stephen Gargan
Not to harp about the endpoint uri but I just want to get them correct so I can try and reproduce. In one you have direct:decode and and in others direct:decoder. Are they consistent in your code? thanks ste On Mon, Mar 8, 2010 at 5:03 PM, boday wrote: > > yes, the retry does work fine 99% of t

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread boday
yes, the retry does work fine 99% of the time...randomly we see this error after many successful retries of of other messages, etc... - Ben - Senior Consultant using SMX 3.3.1/Camel 2.1 -- View this message in context: http://old.nabble.com/DirectProducer---no-consumers-available-on-endpoin

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread Stephen Gargan
You say "Every now and then, I get the following warning in my logs... WARN - DirectProducer - No consumers available on endpoint: Endpoint[direct://Decoder]" This wouldn't happen to coincide with your timer would it? Does the polling consumer ever succeed or does it always giv

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread boday
sorry, the '::' was a typo in my post only... the route works fine during normal execution...basically the following from('activemq:inbound') .to('direct:decode'); from('direct:decode') .convertBodyTo(DOMSource.class) .process(new DecodeProcessor()) .process(new ValidateProcessor()) .process(ne

Re: DirectProducer - no consumers available on endpoint...message is lost

2010-03-08 Thread Stephen Gargan
Do you have something listening on the direct endpoint? How do you have it configured? I see you've an extra colon in the endpoint uri here; Does the route consuming this direct endpoint also use "direct::Decoder" or just "direct:Decoder". Are you using a single camel context? If you post the dire