Skip to content

Commit

Permalink
Add support for pull and push consumers (datastax#6)
Browse files Browse the repository at this point in the history
* Add handling of QueueDeclare frame, bindings and partial handling of BasicGet

* Add RabbitMQ client end-to-end test

* Handle no-ack BasicGet

* Add handling of BasicConsume, BasicCancel, BasicDeliver and BasicQos frames
  • Loading branch information
cbornet authored Jul 19, 2021
1 parent 851852b commit dace9c4
Show file tree
Hide file tree
Showing 21 changed files with 2,414 additions and 96 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions conf/gateway.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brokerServiceURL = http://localhost:8080
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>DataStax RabbitMQ (R) gateway for Apache Pulsar (R)</name>
<description>Gateway to connect RabbitMQ clients to Apache Pulsar seamlessly</description>
<description>Gateway to seamlessly connect RabbitMQ clients to Apache Pulsar</description>
<url>https://github.com/datastax/pulsar-rabbitmq-gw</url>
<inceptionYear>2021</inceptionYear>
<organization>
Expand Down
70 changes: 70 additions & 0 deletions pulsar-rabbitmq-gw/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?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/maven-v4_0_0.xsd">
<parent>
<artifactId>pulsar-rabbitmq-gw-parent</artifactId>
<groupId>com.datastax.oss</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pulsar-rabbitmq-gw</artifactId>
<name>DataStax RabbitMQ (R) gateway for Apache Pulsar (R)</name>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer>
<mainClass>com.datastax.oss.pulsar.rabbitmqgw.GatewayServiceStarter</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>apiguardian-api</artifactId>
<groupId>org.apiguardian</groupId>
</exclusion>
<exclusion>
<artifactId>junit-platform-engine</artifactId>
<groupId>org.junit.platform</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-api</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<properties>
<build.dir>${project.build.directory}</build.dir>
</properties>
</project>

35 changes: 35 additions & 0 deletions pulsar-rabbitmq-gw/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,39 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.datastax.oss.pulsar.rabbitmqgw.GatewayServiceStarter</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit dace9c4

Please sign in to comment.