Skip to content

Commit a643a79

Browse files
Add nexus configuration to spring boot readme (#2417)
1 parent 6f4621d commit a643a79

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

temporal-spring-boot-autoconfigure/README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ spring.temporal:
123123
- your.package.YouWorkflowImpl
124124
activity-beans:
125125
- activity-bean-name1
126+
nexus-service-beans:
127+
- nexus-service-bean-name1
126128
# capacity:
127129
# max-concurrent-workflow-task-executors: 200
128130
# max-concurrent-activity-executors: 200
@@ -146,8 +148,8 @@ spring.temporal:
146148

147149
## Auto-discovery
148150

149-
Allows to skip specifying Workflow classes and Activity beans explicitly in the config
150-
by referencing Worker Task Queue names or Worker Names on Workflow and Activity implementations.
151+
Allows to skip specifying Workflow classes, Activity beans, and Nexus Service beans explicitly in the config
152+
by referencing Worker Task Queue names or Worker Names on Workflow, Activity implementations, and Nexus Service implementations.
151153
Auto-discovery is applied after and on top of an explicit configuration.
152154

153155
Add the following to your `application.yml` to auto-discover workflows and activities from your classpath.
@@ -156,15 +158,16 @@ Add the following to your `application.yml` to auto-discover workflows and activ
156158
spring.temporal:
157159
workers-auto-discovery:
158160
packages:
159-
- your.package # enumerate all the packages that contain your workflow and activity implementations
161+
- your.package # enumerate all the packages that contain your workflow, activity implementations, and nexus service implementations.
160162
```
161163

162164
What is auto-discovered:
163165
- Workflows implementation classes annotated with `io.temporal.spring.boot.WorkflowImpl`
164166
- Activity beans present Spring context whose implementations are annotated with `io.temporal.spring.boot.ActivityImpl`
167+
- Nexus Service beans present in Spring context whose implementations are annotated with `io.temporal.spring.boot.NexusServiceImpl`
165168
- Workers if a Task Queue is referenced by the annotations but not explicitly configured. Default configuration will be used.
166169

167-
Auto-discovered workflow implementation classes and activity beans will be registered with the configured workers if not already registered.
170+
Auto-discovered workflow implementation classes, activity beans, and nexus service beans will be registered with the configured workers if not already registered.
168171

169172
### Referencing Worker names vs Task Queues
170173

0 commit comments

Comments
 (0)