Skip to content

Commit

Permalink
Rename contact point to gateway address (#137)
Browse files Browse the repository at this point in the history
following changes in Spring Zeebe
  • Loading branch information
falko authored Nov 22, 2021
1 parent 4ee9a80 commit 117228f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ The docker image for the worker is published to [GitHub Packages](https://github
```
docker pull ghcr.io/camunda-community-hub/zeebe-dmn-worker:1.0.0
```
* configure the connection to the Zeebe broker by setting `zeebe.client.broker.contactPoint` (default: `localhost:26500`)
* configure the connection to the Zeebe gateway by setting `zeebe.client.broker.gatewayAddress` (default: `localhost:26500`)
* configure the folder where the DMN files are located by setting `zeebe.client.worker.dmn.repository` (default: `dmn-repo`)

For a local setup, the repository contains a [docker-compose file](docker/docker-compose.yml). It starts a Zeebe broker and the worker.
For a local setup, the repository contains a [docker-compose file](docker/docker-compose.yml). It starts a Zeebe broker with an embedded gateway and the worker.

```
cd docker
Expand Down Expand Up @@ -76,7 +76,7 @@ zeebe:
dmn.repository: dmn-repo
job.timeout: 10000
broker.contactPoint: 127.0.0.1:26500
broker.gatewayAddress: 127.0.0.1:26500
security.plaintext: true
```

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
container_name: zeebe-dmn-worker
image: ghcr.io/camunda-community-hub/zeebe-dmn-worker:1.0.0
environment:
- zeebe.client.broker.contactPoint=zeebe:26500
- zeebe.client.broker.gatewayAddress=zeebe:26500
- zeebe.client.worker.dmn.repository=/usr/share/zeebe/dmn-repo
volumes:
- ./dmn-repo:/usr/share/zeebe/dmn-repo
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ zeebe:

job.timeout: 10000
# remove the following two lines when using Camunda Cloud SaaS
broker.contactPoint: 127.0.0.1:26500
broker.gatewayAddress: 127.0.0.1:26500
security.plaintext: true

logging:
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/io/zeebe/dmn/WorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public class WorkflowTest {
@BeforeAll
public static void init() {

final var gatewayContactPoint = ZEEBE_CONTAINER.getExternalGatewayAddress();
System.setProperty("zeebe.client.broker.contactPoint", gatewayContactPoint);
final var gatewayAddress = ZEEBE_CONTAINER.getExternalGatewayAddress();
System.setProperty("zeebe.client.broker.gatewayAddress", gatewayAddress);

ZEEBE_CLIENT =
ZeebeClient.newClientBuilder().gatewayAddress(gatewayContactPoint).usePlaintext().build();
ZeebeClient.newClientBuilder().gatewayAddress(gatewayAddress).usePlaintext().build();

// given
final BpmnModelInstance process =
Expand Down

0 comments on commit 117228f

Please sign in to comment.