添加activeMQ连接池;
This commit is contained in:
parent
737faaeef0
commit
af6105b21c
|
|
@ -51,9 +51,16 @@ spring:
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
password:
|
password:
|
||||||
|
|
||||||
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
||||||
activemq:
|
activemq:
|
||||||
broker-url: tcp://localhost:61616 #连接地址
|
broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
|
||||||
|
in-memory: false # Jeepay项目不可使用内存模式, 需要连接多个消费者。
|
||||||
|
user: system # activeMQ默认无需账密认证。 打开认证:activemq.xml添加simpleAuthenticationPlugin标签,账密在credentials.properties文件。
|
||||||
|
password: manager
|
||||||
|
pool:
|
||||||
|
enabled: true
|
||||||
|
max-connections: 10
|
||||||
|
idle-timeout: 30000 # 空闲的连接过期时间,默认为30秒
|
||||||
#
|
#
|
||||||
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
||||||
# rabbitmq:
|
# rabbitmq:
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,16 @@ spring:
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
password:
|
password:
|
||||||
|
|
||||||
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
||||||
activemq:
|
activemq:
|
||||||
broker-url: tcp://localhost:61616 #连接地址
|
broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
|
||||||
|
in-memory: false # Jeepay项目不可使用内存模式, 需要连接多个消费者。
|
||||||
|
user: system # activeMQ默认无需账密认证。 打开认证:activemq.xml添加simpleAuthenticationPlugin标签,账密在credentials.properties文件。
|
||||||
|
password: manager
|
||||||
|
pool:
|
||||||
|
enabled: true
|
||||||
|
max-connections: 10
|
||||||
|
idle-timeout: 30000 # 空闲的连接过期时间,默认为30秒
|
||||||
#
|
#
|
||||||
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
||||||
# rabbitmq:
|
# rabbitmq:
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,16 @@ spring:
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
password:
|
password:
|
||||||
|
|
||||||
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
||||||
activemq:
|
activemq:
|
||||||
broker-url: tcp://localhost:61616 #连接地址
|
broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
|
||||||
|
in-memory: false # Jeepay项目不可使用内存模式, 需要连接多个消费者。
|
||||||
|
user: system # activeMQ默认无需账密认证。 打开认证:activemq.xml添加simpleAuthenticationPlugin标签,账密在credentials.properties文件。
|
||||||
|
password: manager
|
||||||
|
pool:
|
||||||
|
enabled: true
|
||||||
|
max-connections: 10
|
||||||
|
idle-timeout: 30000 # 空闲的连接过期时间,默认为30秒
|
||||||
#
|
#
|
||||||
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
||||||
# rabbitmq:
|
# rabbitmq:
|
||||||
|
|
@ -79,20 +86,6 @@ spring:
|
||||||
# producer:
|
# producer:
|
||||||
# group: JEEPAY-GROUP
|
# group: JEEPAY-GROUP
|
||||||
|
|
||||||
#rabbitmq配置
|
|
||||||
# rabbitmq:
|
|
||||||
# addresses: 127.0.0.1:5672
|
|
||||||
# username: guest
|
|
||||||
# password: guest
|
|
||||||
# dynamic: true
|
|
||||||
# virtual-host: /
|
|
||||||
|
|
||||||
#rocketmq配置
|
|
||||||
# rocketmq:
|
|
||||||
# name-server: 127.0.0.1:9876
|
|
||||||
# producer:
|
|
||||||
# group: rocket-group
|
|
||||||
|
|
||||||
#日志配置参数。
|
#日志配置参数。
|
||||||
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
|
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
|
||||||
# 不存在logback-spring.xml 文件时, 使用springboot的配置, 同样可用。
|
# 不存在logback-spring.xml 文件时, 使用springboot的配置, 同样可用。
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,16 @@ spring:
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
password:
|
password:
|
||||||
|
|
||||||
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
|
||||||
activemq:
|
activemq:
|
||||||
broker-url: tcp://localhost:61616 #连接地址
|
broker-url: failover:(tcp://127.0.0.1:61616?wireFormat.maxInactivityDuration=0) #连接地址
|
||||||
|
in-memory: false # Jeepay项目不可使用内存模式, 需要连接多个消费者。
|
||||||
|
user: system # activeMQ默认无需账密认证。 打开认证:activemq.xml添加simpleAuthenticationPlugin标签,账密在credentials.properties文件。
|
||||||
|
password: manager
|
||||||
|
pool:
|
||||||
|
enabled: true
|
||||||
|
max-connections: 10
|
||||||
|
idle-timeout: 30000 # 空闲的连接过期时间,默认为30秒
|
||||||
#
|
#
|
||||||
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
# #rabbitmq配置 ( 注意: rabbitmq配置项需在spring的下级 )
|
||||||
# rabbitmq:
|
# rabbitmq:
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,23 @@
|
||||||
<!-- ↓↓↓↓↓↓ MQ依赖包 ↓↓↓↓↓↓ -->
|
<!-- ↓↓↓↓↓↓ MQ依赖包 ↓↓↓↓↓↓ -->
|
||||||
<!-- 使用的厂商 scope=compile, 否则需要scope=provided(仅编译,不依赖) -->
|
<!-- 使用的厂商 scope=compile, 否则需要scope=provided(仅编译,不依赖) -->
|
||||||
|
|
||||||
<!-- ActiveMQ -->
|
<!-- ActiveMQ 和 连接池 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-activemq</artifactId>
|
<artifactId>spring-boot-starter-activemq</artifactId>
|
||||||
<!-- <scope>provided</scope>-->
|
<!-- <scope>provided</scope>-->
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.activemq</groupId>
|
||||||
|
<artifactId>activemq-pool</artifactId>
|
||||||
|
<!-- <scope>provided</scope>-->
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.messaginghub</groupId>
|
||||||
|
<artifactId>pooled-jms</artifactId>
|
||||||
|
<!-- <scope>provided</scope>-->
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- RabbitMQ -->
|
<!-- RabbitMQ -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue