【问题标题】:Performance hit in ActiveMQActiveMQ 中的性能下降
【发布时间】:2017-05-03 20:52:02
【问题描述】:

在基于 Spring 的应用程序中执行以下操作是否会对性能产生明显影响:

Destination destination;
destination = new ActiveMQQueue(someFunctionArgumentString);

我担心这不会通过连接池和 Spring 将用于管理目的地的任何其他缓存。因此,在 AMQ 下向目的地发送消息的首选方法是什么?

【问题讨论】:

    标签: spring activemq spring-jms


    【解决方案1】:

    目标对象与连接池无关;它只是配置队列/主题。

    将AMQ连接工厂包装在CachingConnectionFactory中;使用JmsTemplate 时,它将使用单个连接并缓存消费者/生产者。

    【讨论】:

      猜你喜欢
      • 2021-12-03
      • 2021-11-25
      • 1970-01-01
      • 2015-08-02
      • 2014-05-19
      • 2013-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多