jms producer performance with spring

后端 未结 4 1808
执念已碎
执念已碎 2021-01-31 18:47

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

4条回答
  •  甜味超标
    2021-01-31 19:05

    JMSTemplate does a walk of ConnectionFactiory -> Connection -> Session -> MessageProducer, closing each object after each send. To get around this, wrap your amqConnectionFactory bean with a org.apache.activemq.pool.PooledConnectionFactory, and use that under the template rather than a CachingConnectionFactory.

提交回复
热议问题