From bddb6d23eeea933be3b8cb6a31ca29aea900102d Mon Sep 17 00:00:00 2001 From: Ahmed Farghal Date: Wed, 5 Jun 2024 08:57:18 +0100 Subject: [PATCH] minor doc fix --- examples/README.md | 5 +++++ .../src/main/java/my/restate/sdk/examples/LoanWorkflow.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 2cfb6ee5..d93cc933 100644 --- a/examples/README.md +++ b/examples/README.md @@ -40,6 +40,11 @@ You can modify the class to run setting `-PmainClass=`, for example, in or ## Invoking the Counter +Make sure your handlers are registered with your restate server. When you run the example above it'll start a deployment listening on port `9080`. Use the `restate` CLI to let the server know to reach it: +```shell +restate deployment register localhost:9080 +``` + If you want to invoke the counter virtual object via curl: ```shell diff --git a/examples/src/main/java/my/restate/sdk/examples/LoanWorkflow.java b/examples/src/main/java/my/restate/sdk/examples/LoanWorkflow.java index 5a15778a..d04fd73b 100644 --- a/examples/src/main/java/my/restate/sdk/examples/LoanWorkflow.java +++ b/examples/src/main/java/my/restate/sdk/examples/LoanWorkflow.java @@ -33,7 +33,7 @@ @Workflow public class LoanWorkflow { - // --- Data types used by the Loan Worfklow + // --- Data types used by the Loan Workflow public enum Status { UNKNOWN,