23 Temmuz 2020 Perşembe

SpringBoot spring.activemq Ayarları

Giriş
Şu satırı dahil ederiz
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-activemq</artifactId>
  <version>1.5.6.RELEASE</version> 
</dependency>
spring.activemq.broker-url
Örnek
Şöyle yaparız.
spring.activemq.broker-url=ssl://testserver:51000
spring.activemq.user=xxxx
spring.activemq.password=xxxx
Örnek
Şöyle yaparız.
spring.activemq.broker-url=tcp://localhost:61616
spring.activemq.in-memory
Embedded broker için şöyle yaparız
spring.activemq.in-memory=true
spring.activemq.pooled=false
Açıklaması şöyle. Yani mesajların veri tabanında saklanır.
BrokerService by default is persistent
Veri tabanı için maven'a şu satırı ekleriz
<dependency>
  <groupId>org.apache.activemq</groupId>
  <artifactId>activemq-kahadb-store</artifactId>
</dependency>
spring.activemq.packages.trust-all
Şöyle yaparız
#ActiveMQ
spring.activemq.in-memory=true
spring.activemq.pool.enabled=false
spring.activemq.packages.trust-all=true
spring.activemq.pool.enabled
Şöyle yaparız
spring.activemq.broker-url=xxx
spring.activemq.user=xxx
spring.activemq.password=xx
spring.activemq.non-blocking-redelivery=true
spring.activemq.pool.enabled=true
spring.activemq.pool.time-between-expiration-check=5s
spring.activemq.pool.max-connections=10
spring.activemq.pool.max-sessions-per-connection=10
spring.activemq.pool.idle-timeout=60s

Hiç yorum yok:

Yorum Gönder