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 route is stopped. You could set up another route with
a timer to poll from the error queue. You could then easily stop both.

ste

On Tue, Mar 9, 2010 at 8:56 AM, boday <[email protected]> wrote:
>
> 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 case in my route and send it to an error queue?
>
> As for the ordering, I don't explicitly define this now.  But, I don't think
> its an issue because everything works fine on startup...the issue only shows
> up after hours of normal operation.
>
> I do stop/start this first route on certain errors (database down, etc)...
>
>                from(INBOUND_QUEUE).routeId(INBOUND_QUEUE)
>                        .to(DECODE_DIRECT);
>
>                with this code...
>
>                ServiceStatus routeStatus = 
> context.getRouteStatus(INBOUND_QUEUE);
>                if(routeStatus.isStoppable())
>                {
>                        context.stopRoute(INBOUND_QUEUE);
>                }
>
>                ...//retry database connection, if successful, restart
>
>                if(routeStatus.isStartable())
>                {
>                        context.startRoute(INBOUND_QUEUE);
>                }
>
> But, I don't ever stop the DECODE_DIRECT route itself.  If I were stopping
> that route, then I'd expect to see an error saying that the route hasn't
> been started or is unavailable.
>
> thanks again...
>
>
>
> -----
> 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-endpoint...message-is-lost-tp27828628p27838518.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Reply via email to