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
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,4 +256,61 @@ public class Test {
256
256
}
257
257
```
258
258
259
+
# Running Multiple Name Space (experimental)
259
260
261
+
Along with the root namespace, you can configure multiple non-root namespaces in the application.yml file. Different namespaces can have different configurations including but not limited to different connection options, registered workflows/activities, data converters etc.
262
+
263
+
```yml
264
+
spring.temporal:
265
+
namespaces:
266
+
- namespace: assign
267
+
alias: assign
268
+
workers-auto-discovery:
269
+
packages: com.component.temporal.assign
270
+
workers:
271
+
- task-queue: global
272
+
- namespace: unassign
273
+
alias: unassign
274
+
workers-auto-discovery:
275
+
packages: com.component.temporal.unassign
276
+
workers:
277
+
- task-queue: global
278
+
```
279
+
280
+
## Customization
281
+
282
+
All customization points for the root namespace also exist for the non-root namespaces. To specify for a particular
283
+
namespace users just need to append the alias/namespace to the bean.
284
+
285
+
```java
286
+
// TemporalOptionsCustomizer type beans must start with the namespace/alias you defined and end with function class
287
+
// name you want to customizer and concat Customizer as the bean name.
0 commit comments