Samar
Samar

Reputation: 463

Consumer not picking up messages from queue

I have an osgi bundle which has a few camel routes. Now everything works fine for a while. After a while one of the routes stops picking up messages. Messages get sent to the queue but the route does not pick it up. I can see number of pending messages growing and one consumer on the queue but nothing happens. On a restart of the bundle things work fine again. Any ideas why this can occur ? Other routes in the bundle work fine while the route under question does not.

Upvotes: 1

Views: 1415

Answers (1)

Ben ODay
Ben ODay

Reputation: 21015

sounds like your route has only 1 consumer thread and its simply blocked from finishing and dequeuing more messages (until you kill/restart it)...

use a thread dump to confirm and identify of the culprit API...likely a slow process or external resource call (database, HTTP, network issue, etc)

Upvotes: 1

Related Questions