<jms:listener-container container-type="default"
connection-factory="testConnectionFactory"
acknowledge="auto"
concurrency="10">
<jms:listener destination="test_queue" ref="testRequestHandler" method="getMessage" />
</jms:listener-container>
So, i have jms connection factory defined with concurrency set to 10 and my consumer can consume 10 messages concurrently at a time. Now, the problem is producer is queuing messages faster than consumer can consume, as a result half of my messages are getting expired in the queue.
- I can increase message TTL so that they remain longer in queue without expiring.
- Increase concurrency value for concurrent consumers.
The problem I'm facing is:
- I don't know how increasing concurrency value will affect the system?
- To what value i can increase its value? Is the concept is similar to no.of threads in thread pool?