Messaged
This commit is contained in:
@@ -19,6 +19,8 @@ import org.redkale.service.LoadMode;
|
||||
* <p>
|
||||
* 详情见: https://redkale.org
|
||||
*
|
||||
* @see org.redkale.mq.ResourceConsumer
|
||||
*
|
||||
* @author zhangjx
|
||||
*
|
||||
* @since 2.8.0
|
||||
|
||||
@@ -74,7 +74,7 @@ public class MessageModuleEngine extends ModuleEngine {
|
||||
}
|
||||
|
||||
void addMessageConsumer(MessageConsumer consumer) {
|
||||
String agentName = consumer.getClass().getAnnotation(ResourceConsumer.class).mq();
|
||||
String agentName = environment.getPropertyValue(consumer.getClass().getAnnotation(ResourceConsumer.class).mq());
|
||||
agentConsumers.computeIfAbsent(agentName, v -> new CopyOnWriteArrayList<>()).add(consumer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user