Skip to content

Enable Multi-App Run for Java HTTP bindings quickstart#1290

Open
AdepuSriCharan wants to merge 2 commits intodapr:masterfrom
AdepuSriCharan:feature/multiapp-bindings
Open

Enable Multi-App Run for Java HTTP bindings quickstart#1290
AdepuSriCharan wants to merge 2 commits intodapr:masterfrom
AdepuSriCharan:feature/multiapp-bindings

Conversation

@AdepuSriCharan
Copy link

Fixes #962

Description

This PR updates the Java HTTP bindings quickstart to use Dapr Multi-App Run as the default execution method.

Previously, users had to manually build and start the application using a long command:

dapr run --app-id batch-http --app-port 8080 --resources-path ../../../components -- java -jar target/BatchProcessingService-0.0.1-SNAPSHOT.jar

Now the quickstart can be started with a single command:

dapr run -f .

This improves the onboarding experience and makes the quickstart reproducible for first-time users.


Changes

Added

bindings/java/http/dapr.yaml

  • Defines app id, directory, port, command and component resources

Updated

bindings/java/http/README.md

  • Replaced manual dapr run command with dapr run -f .
  • Removed separate Maven build steps
  • Added prerequisites (Java 17+, Maven, dapr init)
  • Clarified execution flow (Cron → Service → PostgreSQL)
  • Uses docker compose up -d for CI compatibility

Verification

Tested locally

1. Start database

cd bindings/db
docker compose up -d

2. Run the quickstart

cd bindings/java/http
dapr run -f .

Observed

  • Spring Boot app starts successfully
  • Dapr sidecar initializes
  • Cron binding triggers every 10 seconds
  • Orders inserted into PostgreSQL

Verified with

docker exec -it postgres psql -U postgres -d orders -c "SELECT * FROM orders;"

Records increase over time, confirming the full end-to-end flow.

Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
@AdepuSriCharan AdepuSriCharan requested review from a team as code owners February 17, 2026 18:27
Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bindings QuickStart - Multi App Run examples

1 participant

Comments