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,