You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Bing Lu <mf...@yahoo.com.INVALID> on 2020/07/17 18:19:42 UTC

sjms batch stuck messages

 Hi, I'm using sjms batch with activemq, the consumers processes messages on the queue and after a while, there is nothing going to the consumers and no errors in the log while some messages are still stuck on the queue. any ideas what could have caused this?
i have the activemqconnection properties as below
connectionFactory.setCopyMessageOnSend(false);
              connectionFactory.setOptimizeAcknowledge(true);
               connectionFactory.setOptimizedMessageDispatch(true);
               connectionFactory.setDispatchAsync(false);
 and sjms property i think that's relevant to the stuck message set as well
component.setAsyncStartListener(true);

Re: sjms batch stuck messages

Posted by Bing Lu <mf...@yahoo.com.INVALID>.
 found out the stuck messages were actually duplicate messages since I was using indempotentrepository, my question is how do i reroute these messages to another queue if possible? thanks
    On Friday, July 17, 2020, 02:26:40 PM EDT, Bing Lu <mf...@yahoo.com.invalid> wrote:  
 
  Hi, I'm using sjms batch with activemq, the consumers processes messages on the queue and after a while, there is nothing going to the consumers and no errors in the log while some messages are still stuck on the queue. any ideas what could have caused this?
i have the activemqconnection properties as below
connectionFactory.setCopyMessageOnSend(false);
              connectionFactory.setOptimizeAcknowledge(true);
               connectionFactory.setOptimizedMessageDispatch(true);
               connectionFactory.setDispatchAsync(false);
 and sjms property i think that's relevant to the stuck message set as well
component.setAsyncStartListener(true);