summaryrefslogtreecommitdiffstats
path: root/holmes-actions
diff options
context:
space:
mode:
Diffstat (limited to 'holmes-actions')
-rw-r--r--holmes-actions/pom.xml20
-rw-r--r--holmes-actions/src/main/java/org/openo/holmes/common/producer/MQProducer.java2
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