You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: temporal-spring-boot-autoconfigure/README.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,8 @@ spring.temporal:
123
123
- your.package.YouWorkflowImpl
124
124
activity-beans:
125
125
- activity-bean-name1
126
+
nexus-service-beans:
127
+
- nexus-service-bean-name1
126
128
# capacity:
127
129
# max-concurrent-workflow-task-executors: 200
128
130
# max-concurrent-activity-executors: 200
@@ -146,8 +148,8 @@ spring.temporal:
146
148
147
149
## Auto-discovery
148
150
149
-
Allows to skip specifying Workflow classesand Activity beans explicitly in the config
150
-
by referencing Worker Task Queue names or Worker Names on Workflowand 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.
151
153
Auto-discovery is applied after and on top of an explicit configuration.
152
154
153
155
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
156
158
spring.temporal:
157
159
workers-auto-discovery:
158
160
packages:
159
-
- your.package # enumerate all the packages that contain your workflowand activity implementations
161
+
- your.package # enumerate all the packages that contain your workflow, activity implementations, and nexus service implementations.
160
162
```
161
163
162
164
What is auto-discovered:
163
165
- Workflows implementation classes annotated with `io.temporal.spring.boot.WorkflowImpl`
164
166
- 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`
165
168
- Workers if a Task Queue is referenced by the annotations but not explicitly configured. Default configuration will be used.
166
169
167
-
Auto-discovered workflow implementation classesand 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.
0 commit comments