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.