I am using Spring JMS Listener to read messages from AMQP queue. Using transacted session to handle the failure if a message fails in processing. On failure redirecting the message to another queue.
Tried to used the concurrency option but can't use it as my message processing need to pick messages in order.
To process around 5000 messages in queue its taking around 30mins.. Reading the message from queue and saving in DB.
Configuration:
<jms:listener-container container-type="default" connection-factory="connectionFactory" acknowledge="transacted">
<jms:listener destination="queueName" ref="processQueueMessage" method="onMessage" />
</jms:listener-container>
Looking for another alternative ways of processing the messages or any suggestion on improving existing process.
sjmsoramqpcomponents. - Konstantin V. Salikhov