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: extensions/mongo.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,25 @@ This extension can be added as a Spring Boot starter dependency to your project
69
69
70
70
It's also possible to autoconfigure the `StorageStrategy` and `EventStorageEngine` by setting the `mongo.event-store.enabled` to true. The creation of the token store and the saga store can be turned off by setting `mongo.token-store.enabled` or `mongo.saga-store.enabled` to false. It's also possible to use a different database for the axon collections than the default the `MongoDatabaseFactory` uses by setting the `axon.mongo.database-name` property.
71
71
72
+
The relevant configuration could look like this:
73
+
74
+
```yaml
75
+
spring:
76
+
data:
77
+
mongodb:
78
+
uri: mongodb://localhost:27017/test
79
+
mongo:
80
+
database-name: axon
81
+
token-store:
82
+
enabled: true
83
+
saga-store:
84
+
enabled: false
85
+
event-store:
86
+
enabled: false
87
+
```
88
+
89
+
While `test` is the default database name, for the axon collections the `axon` database will be used instead. The saga store will not be initialised.
90
+
72
91
## Configuration of the Mongo Dead-Letter Queue with Spring
73
92
74
93
See [Dead-Letter Queue](../axon-framework/events/event-processors/README.md#dead-letter-queue) for the general information about the Dead-Letter Queue.
0 commit comments