quickstarts/bindings/java/http
Bilgin Ibryam dcfade9683 Fixed a typo
Signed-off-by: Bilgin Ibryam <bibryam@gmail.com>
2022-07-12 21:35:10 +01:00
..
batch Fixed a typo 2022-07-12 21:35:10 +01:00
README.md Change all references of app-id in bindings examples to batch-* (#699) 2022-06-24 12:33:24 -07:00
makefile Binding quickstart - Cron input PostgreSQL output (#669) 2022-06-22 18:06:18 -07:00

README.md

Dapr Bindings (HTTP)

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 only HTTP REST. If you are looking for the example using the Dapr SDK 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-http --app-port 8080 --components-path ../../../components -- java -jar target/BatchProcessingService-0.0.1-SNAPSHOT.jar