i created a simple producer consumer simulation based on spring, jms and activemq, i\'m trying to reach high performance from both sides, producers and consumers,
Connec
Sorry if this answer comes to late to help the original poster. I recently investigated JmsTemplate
performance. Even with the same delivery and acknowledgment modes, native JMS
code seemed much faster than JmsTemplate
. The problem turned out to be that ActiveMQ
normally defaults to async sending, but when you use JmsTemplate
it instead uses sync sending. This dramatically reduces performance. You can set ActiveMQConnectionFactory
's useAsyncSend
property to true
to force async sending. More details here: JmsTemplate is not evil