Skip to content

Commit

Permalink
Implement ActiveMQ Artemis Connector
Browse files Browse the repository at this point in the history
  • Loading branch information
riyafa committed Mar 7, 2019
1 parent 380e28b commit eb1dca9
Show file tree
Hide file tree
Showing 44 changed files with 3,208 additions and 4 deletions.
6 changes: 6 additions & 0 deletions distribution/zip/ballerina-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
<type>zip</type>
<classifier>ballerina-sources</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<type>zip</type>
<classifier>ballerina-sources</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-log-api</artifactId>
Expand Down
57 changes: 53 additions & 4 deletions distribution/zip/ballerina/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-jms</artifactId>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-log-api</artifactId>
Expand Down Expand Up @@ -158,6 +162,42 @@
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-privacy</artifactId>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-core-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-commons</artifactId>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-json_1.0_spec</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
</dependency>
<!-- end of stdlib jar dependencies -->

<dependency>
Expand Down Expand Up @@ -245,10 +285,6 @@
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
</dependency>

<!-- Siddhi Stream Dependencies -->
<dependency>
Expand Down Expand Up @@ -403,6 +439,12 @@
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-jms</artifactId>
Expand Down Expand Up @@ -598,6 +640,12 @@
<type>zip</type>
<classifier>ballerina-sources</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<type>zip</type>
<classifier>ballerina-sources</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-log-api</artifactId>
Expand Down Expand Up @@ -764,6 +812,7 @@
ballerina-socket,
ballerina-internal,
ballerina-jms,
ballerina-activemq-artemis,
ballerina-log-api,
ballerina-math,
ballerina-mime,
Expand Down
12 changes: 12 additions & 0 deletions distribution/zip/ballerina/src/assembly/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<include>org.ballerinalang:ballerina-io:jar</include>
<include>org.ballerinalang:ballerina-socket:jar</include>
<include>org.ballerinalang:ballerina-jms:jar</include>
<include>org.ballerinalang:ballerina-activemq-artemis:jar</include>
<include>org.ballerinalang:ballerina-log-api:jar</include>
<include>org.ballerinalang:ballerina-math:jar</include>
<include>org.ballerinalang:ballerina-mime:jar</include>
Expand Down Expand Up @@ -187,6 +188,17 @@
<include>io.netty:netty-tcnative-boringssl-static</include>
<include>com.jcraft:jzlib</include>

<!-- Artemis connector dependencies -->
<include>org.apache.activemq:artemis-core-client</include>
<include>org.apache.activemq:artemis-commons</include>
<include>commons-beanutils:commons-beanutils</include>
<include>org.apache.activemq:artemis-commons</include>
<include>org.jboss.logging:jboss-logging</include>
<include>commons-collections:commons-collections</include>
<include>org.apache.geronimo.specs:geronimo-json_1.0_spec</include>
<include>io.netty:netty-transport-native-epoll</include>
<include>io.netty:netty-transport-native-kqueue</include>

<!-- Observability Dependencies -->
<include>org.ballerinalang:ballerina-jaeger-extension:jar</include>
<include>io.opentracing:opentracing-api</include>
Expand Down
6 changes: 6 additions & 0 deletions language-server/modules/langserver-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-grpc</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions language-server/modules/langserver-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-grpc</artifactId>
Expand Down
72 changes: 72 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,27 @@
<classifier>ballerina-binary-repo</classifier>
</dependency>

<!--ballerina-activemq-artemis-->
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<version>${ballerina.version}</version>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<version>${ballerina.version}</version>
<type>zip</type>
<classifier>ballerina-sources</classifier>
</dependency>
<dependency>
<groupId>org.ballerinalang</groupId>
<artifactId>ballerina-activemq-artemis</artifactId>
<version>${ballerina.version}</version>
<type>zip</type>
<classifier>ballerina-binary-repo</classifier>
</dependency>

<!-- ballerina-log-api -->
<dependency>
<groupId>org.ballerinalang</groupId>
Expand Down Expand Up @@ -1594,6 +1615,48 @@
<artifactId>bcpkix-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>

<!--Artemis dependencies -->
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-core-client</artifactId>
<version>${artemis.version}</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-commons</artifactId>
<version>${artemis.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${beanutils.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>${jboss.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons-collections.version}</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-json_1.0_spec</artifactId>
<version>${geronimo-json.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<version>${netty.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
<version>${netty.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -1716,6 +1779,7 @@
<module>stdlib/database/sql</module>
<module>stdlib/streams</module>
<module>stdlib/privacy</module>
<module>stdlib/messaging/activemq-artemis</module>

<module>misc/lib-creator</module>

Expand Down Expand Up @@ -1804,6 +1868,7 @@
<module>stdlib/database/sql</module>
<module>stdlib/streams</module>
<module>stdlib/privacy</module>
<module>stdlib/messaging/activemq-artemis</module>

<module>misc/lib-creator</module>

Expand Down Expand Up @@ -2393,6 +2458,13 @@
<andes.client.version>3.2.87</andes.client.version>
<wso2.securevault.version>1.0.0-wso2v2</wso2.securevault.version>

<!-- Artemis connector -->
<artemis.version>2.6.3</artemis.version>
<beanutils.version>1.9.3</beanutils.version>
<jboss.version>3.3.1.Final</jboss.version>
<commons-collections.version>3.2.2</commons-collections.version>
<geronimo-json.version>1.0-alpha-1</geronimo-json.version>

<file.transport.version>6.0.55</file.transport.version>
<chewiebug.gcviewer.version>1.35</chewiebug.gcviewer.version>

Expand Down
35 changes: 35 additions & 0 deletions stdlib/messaging/activemq-artemis/assembly/balo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
~ /*
~ * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ *
~ * Licensed under the Apache License, Version 2.0 (the "License");
~ * you may not use this file except in compliance with the License.
~ * You may obtain a copy of the License at
~ *
~ * http://www.apache.org/licenses/LICENSE-2.0
~ *
~ * Unless required by applicable law or agreed to in writing, software
~ * distributed under the License is distributed on an "AS IS" BASIS,
~ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ * See the License for the specific language governing permissions and
~ * limitations under the License.
~ */
-->
<assembly>
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>/</baseDirectory>
<id>ballerina-binary-repo</id>
<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>${project.build.directory}/generated-balo</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
35 changes: 35 additions & 0 deletions stdlib/messaging/activemq-artemis/assembly/source.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
~ /*
~ * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ *
~ * Licensed under the Apache License, Version 2.0 (the "License");
~ * you may not use this file except in compliance with the License.
~ * You may obtain a copy of the License at
~ *
~ * http://www.apache.org/licenses/LICENSE-2.0
~ *
~ * Unless required by applicable law or agreed to in writing, software
~ * distributed under the License is distributed on an "AS IS" BASIS,
~ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ * See the License for the specific language governing permissions and
~ * limitations under the License.
~ */
-->
<assembly>
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>ballerina</baseDirectory>
<id>ballerina-sources</id>
<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>src/main/ballerina</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Loading

0 comments on commit eb1dca9

Please sign in to comment.