2 Replies Latest reply on Jul 17, 2009 2:27 PM by romsrini

    Is there a way to configure the prefetch for a Camel Consumer?

    romsrini

      I have two consumers configured with a selector using a ServerRoutes class.

      The selector part is working correctly and the correct messages are being routed to each consumer.

       

      But its seems like Camel (or something else) fetches a bunch of messages off of the queue at a time and allocates them to the correct consumer based on the selector.

       

      Is there a way to configure this 'bunch'? I know there is a prefetch parameter when I produce a message using a JMSTemplate. Is there similar paramter for consuming messages?