spring-boot-starter-activemq-demo

application-prod.yml 760B

123456789101112131415161718
  1. #配置数据源
  2. spring:
  3. activemq:
  4. broker-url: tcp://127.0.0.1:61616
  5. user: admin
  6. password: admin
  7. close-timeout: 15s # 在考虑结束之前等待的时间
  8. in-memory: true # 默认代理URL是否应该在内存中。如果指定了显式代理,则忽略此值。
  9. non-blocking-redelivery: false # 是否在回滚回滚消息之前停止消息传递。这意味着当启用此命令时,消息顺序不会被保留。
  10. send-timeout: 0 # 等待消息发送响应的时间。设置为0等待永远。
  11. queue-name: active.queue
  12. topic-name: active.topic.name.model
  13. pool:
  14. enabled: true
  15. max-connections: 10 #连接池最大连接数
  16. idle-timeout: 30000 #空闲的连接过期时间,默认为30秒