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
dc23e607
Commit
dc23e607
authored
Jul 02, 2021
by
xiaoyu
Browse files
mq重复问题,配置修改
parent
137609df
Changes
14
Hide whitespace changes
Inline
Side-by-side
conf/manager/application.yml
View file @
dc23e607
...
...
@@ -24,14 +24,14 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
profiles:
#
include:
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
# rabbitmq:
...
...
conf/merchant/application.yml
View file @
dc23e607
...
...
@@ -24,14 +24,14 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
profiles:
#
include:
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
# rabbitmq:
...
...
conf/payment/application.yml
View file @
dc23e607
...
...
@@ -24,14 +24,14 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
profiles:
#
include:
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
# rabbitmq:
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/queue/MqQueue4ModifyMchUserRemove.java
View file @
dc23e607
...
...
@@ -45,14 +45,14 @@ public class MqQueue4ModifyMchUserRemove extends MqMchUserRemoveService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchUserRemove"
)
@Bean
(
"
activeM
odifyMchUserRemove"
)
public
Queue
mqQueue4ModifyMchUserRemove
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_MODIFY_MCH_USER_REMOVE
);
}
@Lazy
@Autowired
@Qualifier
(
"
m
odifyMchUserRemove"
)
@Qualifier
(
"
activeM
odifyMchUserRemove"
)
private
Queue
mqQueue4ModifyMchUserRemove
;
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/queue/MqQueue4PayOrderMchNotify.java
View file @
dc23e607
...
...
@@ -43,14 +43,14 @@ public class MqQueue4PayOrderMchNotify extends MqPayOrderNotifyService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
p
ayOrderMchNotify"
)
@Bean
(
"
activeP
ayOrderMchNotify"
)
public
Queue
mqQueue4PayOrderMchNotify
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
}
@Lazy
@Autowired
@Qualifier
(
"
p
ayOrderMchNotify"
)
@Qualifier
(
"
activeP
ayOrderMchNotify"
)
private
Queue
mqQueue4PayOrderMchNotify
;
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyIsvInfo.java
View file @
dc23e607
...
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyIsvInfo extends MqModifyIsvInfoService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyIsvInfo"
)
@Bean
(
"
activeM
odifyIsvInfo"
)
public
ActiveMQTopic
mqTopic4ModifyIsvInfo
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_ISV_INFO
);
}
@Lazy
@Autowired
@Qualifier
(
"
m
odifyIsvInfo"
)
@Qualifier
(
"
activeM
odifyIsvInfo"
)
private
ActiveMQTopic
mqTopic4ModifyIsvInfo
;
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyMchApp.java
View file @
dc23e607
...
...
@@ -43,14 +43,14 @@ public class MqTopic4ModifyMchApp extends MqModifyMchAppService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchApp"
)
@Bean
(
"
activeM
odifyMchApp"
)
public
ActiveMQTopic
mqTopic4ModifyMchApp
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_APP
);
}
@Lazy
@Autowired
@Qualifier
(
"
m
odifyMchApp"
)
@Qualifier
(
"
activeM
odifyMchApp"
)
private
ActiveMQTopic
mqTopic4ModifyMchApp
;
/** 推送消息到各个节点 **/
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifyMchInfo.java
View file @
dc23e607
...
...
@@ -41,14 +41,14 @@ public class MqTopic4ModifyMchInfo extends MqModifyMchInfoService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Bean
(
"
m
odifyMchInfo"
)
@Bean
(
"
activeM
odifyMchInfo"
)
public
ActiveMQTopic
mqTopic4ModifyMchInfo
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_MCH_INFO
);
}
@Lazy
@Autowired
@Qualifier
(
"
m
odifyMchInfo"
)
@Qualifier
(
"
activeM
odifyMchInfo"
)
private
ActiveMQTopic
mqTopic4ModifyMchInfo
;
@Override
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/topic/MqTopic4ModifySysConfig.java
View file @
dc23e607
...
...
@@ -44,14 +44,14 @@ public class MqTopic4ModifySysConfig extends MqModifySysConfigService {
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
SysConfigService
sysConfigService
;
@Bean
(
"
m
odifySysConfig"
)
@Bean
(
"
activeM
odifySysConfig"
)
public
ActiveMQTopic
mqTopic4ModifySysConfig
(){
return
new
ActiveMQTopic
(
CS
.
MQ
.
TOPIC_MODIFY_SYS_CONFIG
);
}
@Lazy
@Autowired
@Qualifier
(
"
m
odifySysConfig"
)
@Qualifier
(
"
activeM
odifySysConfig"
)
private
ActiveMQTopic
mqTopic4ModifySysConfig
;
/** 接收 更新系统配置项的消息 **/
...
...
jeepay-manager/src/main/resources/application.yml
View file @
dc23e607
...
...
@@ -52,22 +52,22 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
- rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#
profiles:
#
include:
#
- activeMQ
#
- rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
#
rabbitmq:
#
addresses: 127.0.0.1:5672
#
username: guest
#
password: guest
#
dynamic: true
#
virtual-host: /
#
rabbitmq:
#
addresses: 127.0.0.1:5672
#
username: guest
#
password: guest
#
dynamic: true
#
virtual-host: /
#日志配置参数。
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
...
...
jeepay-merchant/src/main/resources/application.yml
View file @
dc23e607
...
...
@@ -52,14 +52,14 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
profiles:
#
include:
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
# rabbitmq:
...
...
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/mq/queue/MqQueue4ChannelOrderQuery.java
View file @
dc23e607
...
...
@@ -55,14 +55,14 @@ public class MqQueue4ChannelOrderQuery extends MqChannelOrderQueryService {
@Autowired
private
PayOrderService
payOrderService
;
@Autowired
private
ChannelOrderReissueService
channelOrderReissueService
;
@Bean
(
"
c
hannelOrderQuery"
)
@Bean
(
"
activeC
hannelOrderQuery"
)
public
Queue
mqQueue4ChannelOrderQuery
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_CHANNEL_ORDER_QUERY
);
}
@Lazy
@Autowired
@Qualifier
(
"
c
hannelOrderQuery"
)
@Qualifier
(
"
activeC
hannelOrderQuery"
)
private
Queue
mqQueue4ChannelOrderQuery
;
/** 发送MQ消息 **/
...
...
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/mq/queue/MqQueue4PayOrderMchNotify.java
View file @
dc23e607
...
...
@@ -51,14 +51,14 @@ import javax.jms.TextMessage;
@Profile
(
CS
.
MQTYPE
.
ACTIVE_MQ
)
public
class
MqQueue4PayOrderMchNotify
extends
MqPayOrderMchNotifyService
{
@Bean
(
"
p
ayOrderMchNotifyInner"
)
@Bean
(
"
activeP
ayOrderMchNotifyInner"
)
public
Queue
mqQueue4PayOrderMchNotifyInner
(){
return
new
ActiveMQQueue
(
CS
.
MQ
.
QUEUE_PAYORDER_MCH_NOTIFY
);
}
@Lazy
@Autowired
@Qualifier
(
"
p
ayOrderMchNotifyInner"
)
@Qualifier
(
"
activeP
ayOrderMchNotifyInner"
)
private
Queue
mqQueue4PayOrderMchNotifyInner
;
@Autowired
private
JmsTemplate
jmsTemplate
;
@Autowired
private
MchNotifyRecordService
mchNotifyRecordService
;
...
...
jeepay-payment/src/main/resources/application.yml
View file @
dc23e607
...
...
@@ -52,14 +52,14 @@ spring:
password
:
# 注意:以下MQ配置需注意【如需使用activeMQ则需将rabbitMQ配置注释即可】
profiles
:
include
:
-
activeMQ
#
profiles:
#
include:
#
- activeMQ
# - rabbitMQ # 需要安装延迟队列插件:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#
activemq:
#
broker-url: tcp://localhost:61616 #连接地址
#rabbitmq配置
# rabbitmq:
...
...
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