Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -208,6 +209,12 @@ To choose your Java EE components with fine grain control include them as your d
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jta-narayana</artifactId>
</dependency>

<!-- JMS -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jms-activemq</artifactId>
</dependency>
```

To choose your KumuluzEE extensions include them as your dependencies. You can find the available implementations and options at their respected project pages.
Expand Down
5 changes: 5 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
<artifactId>kumuluzee-jta-narayana</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jms-activemq</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public enum EeComponentType {

BATCH("Batch"),

MAIL("JavaMail");
MAIL("JavaMail"),

JMS("JMS");

private final String name;

Expand Down
35 changes: 35 additions & 0 deletions components/jms/activemq/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>kumuluzee-jms</artifactId>
<groupId>com.kumuluz.ee</groupId>
<version>2.5.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>kumuluzee-jms-activemq</artifactId>

<name>KumuluzEE JMS ActiveMQ</name>
<description>KumuluzEE JMS component implemented by ActiveMQ (Apache Software Foundation)</description>

<dependencies>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-common</artifactId>
</dependency>

<dependency>
<groupId>javax.jms</groupId>
<artifactId>javax.jms-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
<version>${activemq.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -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");
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.kumuluz.ee.jms.activemq.JmsComponent
22 changes: 22 additions & 0 deletions components/jms/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>kumuluzee-components</artifactId>
<groupId>com.kumuluz.ee</groupId>
<version>2.5.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<packaging>pom</packaging>
<artifactId>kumuluzee-jms</artifactId>

<name>KumuluzEE JMS</name>
<description>KumuluzEE JMS component</description>

<modules>
<module>activemq</module>
</modules>

</project>
1 change: 1 addition & 0 deletions components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<module>jax-ws</module>
<module>ejb</module>
<module>jta</module>
<module>jms</module>
</modules>

<artifactId>kumuluzee-components</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<json.p.version>1.0</json.p.version>
<ejb.version>3.2</ejb.version>
<jta.version>1.2</jta.version>
<jms.version>2.0.1</jms.version>

<jandex.version>2.0.3.Final</jandex.version>
<jboss-logging.version>3.3.0.Final</jboss-logging.version>
Expand Down Expand Up @@ -75,6 +76,7 @@
<jetty.version>9.4.6.v20170531</jetty.version>
<narayana.version>5.6.4.Final</narayana.version>
<jboss-transaction-spi.version>7.6.0.Final</jboss-transaction-spi.version>
<activemq.version>5.15.2</activemq.version>
</properties>

<scm>
Expand Down Expand Up @@ -281,6 +283,16 @@
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jms</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jms-activemq</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-profiles</artifactId>
Expand Down Expand Up @@ -386,6 +398,11 @@
<artifactId>javax.transaction-api</artifactId>
<version>${jta.version}</version>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>javax.jms-api</artifactId>
<version>${jms.version}</version>
</dependency>

<!-- Various libraries used throughout the framework-->
<dependency>
Expand Down