Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
af6105b2
Commit
af6105b2
authored
Jul 27, 2021
by
terrfly
Browse files
添加activeMQ连接池;
parent
737faaee
Changes
5
Hide whitespace changes
Inline
Side-by-side
conf/devCommons/config/application.yml
View file @
af6105b2
...
...
@@ -51,9 +51,16 @@ spring:
timeout
:
1000
password
:
#
#activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
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:
...
...
conf/manager/application.yml
View file @
af6105b2
...
...
@@ -61,9 +61,16 @@ spring:
timeout
:
1000
password
:
#
#activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
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:
...
...
conf/merchant/application.yml
View file @
af6105b2
...
...
@@ -61,9 +61,16 @@ spring:
timeout
:
1000
password
:
#
#activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
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:
...
...
@@ -79,20 +86,6 @@ spring:
# producer:
# 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 文件时, 使用springboot的配置, 同样可用。
...
...
conf/payment/application.yml
View file @
af6105b2
...
...
@@ -61,9 +61,16 @@ spring:
timeout
:
1000
password
:
#
#activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
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:
...
...
jeepay-components/jeepay-components-mq/pom.xml
View file @
af6105b2
...
...
@@ -34,12 +34,23 @@
<!-- ↓↓↓↓↓↓ MQ依赖包 ↓↓↓↓↓↓ -->
<!-- 使用的厂商 scope=compile, 否则需要scope=provided(仅编译,不依赖) -->
<!-- ActiveMQ -->
<!-- ActiveMQ
和 连接池
-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-activemq
</artifactId>
<!-- <scope>provided</scope>-->
</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 -->
<dependency>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment