# Java SDK, Nexus OperationHandler + @UpdateMethod

**URL:** <https://community.temporal.io/t/java-sdk-nexus-operationhandler-updatemethod/18666>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [November 13, 2025, 9:44pm UTC](https://community.temporal.io/t/java-sdk-nexus-operationhandler-updatemethod/18666 "2025-11-13T21:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdonovan](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sdonovan](https://community.temporal.io/u/sdonovan)\
**Post date:** [November 13, 2025, 9:44pm UTC](https://community.temporal.io/t/java-sdk-nexus-operationhandler-updatemethod/18666/1 "2025-11-13T21:44:12Z")

</div>

Greetings. I’ve been experimenting with Nexus using the Java SDK. I can succesfully run operations to create/run workflows in a different namespace, but I can’t (yet?) figure out how to code the `OperationHandler` to call an update-method (`@UpdateMethod`). FYI: the Nexus Java examples only include the create workflow case.

Does anyone have an example?

Thank you!

Sean

---

<div class="post-metadata">

**Author:** ![sdonovan](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sdonovan](https://community.temporal.io/u/sdonovan)\
**Post date:** [November 13, 2025, 10:48pm UTC](https://community.temporal.io/t/java-sdk-nexus-operationhandler-updatemethod/18666/2 "2025-11-13T22:48:02Z")

</div>

Moving forward, the following works. However, what if the `@UpdateMethod` executes for \> 10s. Is it possible to do an async equivalent?

```auto
@OperationImpl
public OperationHandler<
    ExpenseDbMosService.StageChangeRequest,
    ExpenseDbMosService.StageChangeResponse> stageChange() {

    return OperationHandler.sync(
        (ctx, details, input) ->
            Nexus.getOperationContext()
                .getWorkflowClient()
                .newWorkflowStub(
                    ExpenseDbProvisioningWorkflow.class,
                    input.getWorkflowId())
                .stageChange(input));
}

```

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [November 16, 2025, 8:51pm UTC](https://community.temporal.io/t/java-sdk-nexus-operationhandler-updatemethod/18666/3 "2025-11-16T20:51:03Z")

</div>

Not yet. The async version of the Update is going to be added.
