diff options
author | FengLiang <feng.liang1@zte.com.cn> | 2017-02-20 09:51:10 +0800 |
---|---|---|
committer | FengLiang <feng.liang1@zte.com.cn> | 2017-02-21 09:40:39 +0800 |
commit | 2042dba2cf604ae314df342060a76de22f827ec2 (patch) | |
tree | 94a6a10b9dc94fc057e3bb315082ed2c8c351b6f /holmes-actions | |
parent | bbe89f96cde1faad401ec1a697c0c4b17d04bc18 (diff) |
Modify exception
private static IterableProvider<MQConfig> mqConfigProvider; Remove static
Issue-ID:HOLMES-37
Change-Id: I31d962050544522cbb169dde8fe69b1491713126
Signed-off-by: FengLiang <feng.liang1@zte.com.cn>
Diffstat (limited to 'holmes-actions')
-rw-r--r-- | holmes-actions/pom.xml | 20 | ||||
-rw-r--r-- | holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java | 2 |
2 files changed, 16 insertions, 6 deletions
diff --git a/holmes-actions/pom.xml b/holmes-actions/pom.xml index 3a3f827..0c891c6 100644 --- a/holmes-actions/pom.xml +++ b/holmes-actions/pom.xml @@ -21,12 +21,22 @@ <artifactId>holmes-actions</artifactId>
<dependencies>
<dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jms_1.1_spec</artifactId>
- </dependency>
- <dependency>
<groupId>org.apache.activemq</groupId>
- <artifactId>activemq-client</artifactId>
+ <artifactId>activemq-all</artifactId>
+ <exclusions>
+ <exclusion>
+ <artifactId>log4j</artifactId>
+ <groupId>log4j</groupId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.openo.common-services.common-utilities</groupId>
diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java b/holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java index a9a869c..826a565 100644 --- a/holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java +++ b/holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java @@ -39,7 +39,7 @@ import org.openo.holmes.common.constant.AlarmConst; public class MQProducer { @Inject - private static IterableProvider<MQConfig> mqConfigProvider; + private IterableProvider<MQConfig> mqConfigProvider; private ConnectionFactory connectionFactory; @PostConstruct |