quickstarts/bindings/java/sdk
Paul Yuknewicz f7c925d23c
Bump to final release 1.14.0 (#1091)
* Updating CLI and runtime versions to final 1.14.0 release

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Updating golang quickstarts with `go get -u github.com/dapr/go-sdk@v1.11.0`

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Updating Java quickstarts to <version>1.12.0</version>

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Fixed up go build errors with go mod tidy

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Dapr runtime to 1.14.1

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

---------

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
2024-08-14 23:37:27 -07:00
..
batch Bump to final release 1.14.0 (#1091) 2024-08-14 23:37:27 -07:00
README.md s/docker-compose/docker compose 2024-08-08 13:20:01 -07:00
makefile Binding quickstart - Cron input PostgreSQL output (#669) 2022-06-22 18:06:18 -07:00

README.md

Dapr Bindings (Dapr SDK)

In this quickstart, you'll create a microservice to demonstrate Dapr's bindings API to work with external systems as inputs and outputs. The service listens to input binding events from a system CRON and then outputs the contents of local data to a PostreSql output binding.

Visit this link for more information about Dapr and Bindings.

Note: This example leverages the Dapr SDK. If you are looking for the example using HTTP REST only click here.

This quickstart includes one service:

  • Java service batch

Run and initialize PostgreSQL container

  1. Open a new terminal, change directories to ../../db, and run the container with Docker Compose:
cd ../../db
docker compose up

Run Java service with Dapr

  1. Open a new terminal window, change directories to ./batch in the quickstart directory and run:
cd ./batch
mvn clean install
  1. Run the java service app with Dapr:
dapr run --app-id batch-sdk --app-port 8080 --resources-path ../../../components -- java -jar target/BatchProcessingService-0.0.1-SNAPSHOT.jar