From b7e219a1de91c83e8bf018a9ca09522ec788bade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:19:07 +0200 Subject: [PATCH 1/6] Added pom dependencies (JMS). --- bom/pom.xml | 5 +++++ components/pom.xml | 1 + pom.xml | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/bom/pom.xml b/bom/pom.xml index 03482c5a..29847a59 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -98,6 +98,11 @@ kumuluzee-jta-narayana ${project.version} + + com.kumuluz.ee + kumuluzee-jms-activemq + ${project.version} + diff --git a/components/pom.xml b/components/pom.xml index 954ee0c0..baff2162 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -26,6 +26,7 @@ jax-ws ejb jta + jms kumuluzee-components diff --git a/pom.xml b/pom.xml index 197774bf..22a45c08 100644 --- a/pom.xml +++ b/pom.xml @@ -47,6 +47,7 @@ 1.0 3.2 1.2 + 2.0.1 2.0.3.Final 3.3.0.Final @@ -75,6 +76,7 @@ 9.4.6.v20170531 5.6.4.Final 7.6.0.Final + 5.15.0 @@ -281,6 +283,16 @@ ${project.version} pom + + com.kumuluz.ee + kumuluzee-jms + ${project.version} + + + com.kumuluz.ee + kumuluzee-jms-activemq + ${project.version} + com.kumuluz.ee kumuluzee-profiles @@ -386,6 +398,11 @@ javax.transaction-api ${jta.version} + + javax.jms + javax.jms-api + ${jms.version} + From 355f813d222c426d59875faf7e7a62585bfc8f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:19:45 +0200 Subject: [PATCH 2/6] Added JMS component. --- .../com/kumuluz/ee/common/dependencies/EeComponentType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java b/common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java index 6679d486..a17a60fc 100644 --- a/common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java +++ b/common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java @@ -54,7 +54,9 @@ public enum EeComponentType { BATCH("Batch"), - MAIL("JavaMail"); + MAIL("JavaMail"), + + JMS("JMS"); private final String name; From 601bb41464b3707e04ec04930c069d8c0f81cd9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:42:04 +0200 Subject: [PATCH 3/6] Added JMS component and ActiveMQ implementation. --- components/jms/activemq/pom.xml | 35 +++++++++++++++++++++++++++++++++ components/jms/pom.xml | 22 +++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 components/jms/activemq/pom.xml create mode 100644 components/jms/pom.xml diff --git a/components/jms/activemq/pom.xml b/components/jms/activemq/pom.xml new file mode 100644 index 00000000..cb0f2cf8 --- /dev/null +++ b/components/jms/activemq/pom.xml @@ -0,0 +1,35 @@ + + + + kumuluzee-jms + com.kumuluz.ee + 2.5.0-SNAPSHOT + + 4.0.0 + + kumuluzee-jms-activemq + + KumuluzEE JMS ActiveMQ + KumuluzEE JMS component implemented by ActiveMQ (Apache Software Foundation) + + + + com.kumuluz.ee + kumuluzee-common + + + + javax.jms + javax.jms-api + + + + org.apache.activemq + activemq-client + ${activemq.version} + + + + \ No newline at end of file diff --git a/components/jms/pom.xml b/components/jms/pom.xml new file mode 100644 index 00000000..49c17ea3 --- /dev/null +++ b/components/jms/pom.xml @@ -0,0 +1,22 @@ + + + + kumuluzee-components + com.kumuluz.ee + 2.5.0-SNAPSHOT + + 4.0.0 + + pom + kumuluzee-jms + + KumuluzEE JMS + KumuluzEE JMS component + + + activemq + + + \ No newline at end of file From 64daf493ec8274678e457cf0463c650f0fc31a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:45:05 +0200 Subject: [PATCH 4/6] Changed activemq version. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 22a45c08..3453ebec 100644 --- a/pom.xml +++ b/pom.xml @@ -76,7 +76,7 @@ 9.4.6.v20170531 5.6.4.Final 7.6.0.Final - 5.15.0 + 5.15.2 From 4ace54a6fe38fc60fca2649bbe93a4bcd56bc481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:46:35 +0200 Subject: [PATCH 5/6] Added new JMS component definition --- .../kumuluz/ee/jms/activemq/JmsComponent.java | 31 +++++++++++++++++++ .../services/com.kumuluz.ee.common.Component | 1 + 2 files changed, 32 insertions(+) create mode 100644 components/jms/activemq/src/main/java/com/kumuluz/ee/jms/activemq/JmsComponent.java create mode 100644 components/jms/activemq/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component diff --git a/components/jms/activemq/src/main/java/com/kumuluz/ee/jms/activemq/JmsComponent.java b/components/jms/activemq/src/main/java/com/kumuluz/ee/jms/activemq/JmsComponent.java new file mode 100644 index 00000000..0a4c62d9 --- /dev/null +++ b/components/jms/activemq/src/main/java/com/kumuluz/ee/jms/activemq/JmsComponent.java @@ -0,0 +1,31 @@ +package com.kumuluz.ee.jms.activemq; + +import com.kumuluz.ee.common.Component; +import com.kumuluz.ee.common.config.EeConfig; +import com.kumuluz.ee.common.dependencies.EeComponentDef; +import com.kumuluz.ee.common.dependencies.EeComponentType; +import com.kumuluz.ee.common.wrapper.KumuluzServerWrapper; + +import java.util.logging.Logger; + +/** + * @author Dejan Ognjenović + * @since 2.5.0 + */ +@EeComponentDef(name = "ActiveMQ", type = EeComponentType.JMS) +public class JmsComponent implements Component { + + private Logger log = Logger.getLogger(JmsComponent.class.getSimpleName()); + + @Override + public void init(KumuluzServerWrapper server, EeConfig eeConfig) { + + } + + @Override + public void load() { + + log.info("Initiating ActiveMQ"); + } + +} diff --git a/components/jms/activemq/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component b/components/jms/activemq/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component new file mode 100644 index 00000000..19defb27 --- /dev/null +++ b/components/jms/activemq/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component @@ -0,0 +1 @@ +com.kumuluz.ee.jms.activemq.JmsComponent \ No newline at end of file From 30c9f2729502e3962313e35c43985e0eb0934d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dejan=20Ognjenovi=C4=87?= Date: Sat, 28 Oct 2017 17:51:10 +0200 Subject: [PATCH 6/6] Added new lines in README.md. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 47821b70..1b672aa9 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Currently the following components are supported with more being added over time - WebSocket 1.1 (Jetty) - Bean Validation 1.1 (RI Hibernate validator) - JTA 1.2 (Narayana) +- JMS 2.0.1 (ActiveMQ) ## Additional features @@ -208,6 +209,12 @@ To choose your Java EE components with fine grain control include them as your d com.kumuluz.ee kumuluzee-jta-narayana + + + + com.kumuluz.ee + kumuluzee-jms-activemq + ``` To choose your KumuluzEE extensions include them as your dependencies. You can find the available implementations and options at their respected project pages.