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
Fixes#2936
* Add `MongoDbMessageStore.setCustomConverters()` to allow to inject
any custom converters for `payload` as well as header values
**Cherry-pick to 5.1.x**
Copy file name to clipboardExpand all lines: spring-integration-mongodb/src/main/java/org/springframework/integration/mongodb/store/MongoDbMessageStore.java
Copy file name to clipboardExpand all lines: spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/MongoDbMessageStoreTests.java
Copy file name to clipboardExpand all lines: src/reference/asciidoc/mongodb.adoc
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,9 @@ The `MongoDbMessageStore` expands the `Message` as a Mongo document with all nes
123
123
It is useful when you need to have access to the `payload` or `headers` for auditing or analytics -- for example, against stored messages.
124
124
125
125
IMPORTANT: The `MongoDbMessageStore` uses a custom `MappingMongoConverter` implementation to store `Message` instances as MongoDB documents, and there are some limitations for the properties (`payload` and `header` values) of the `Message`.
126
-
For example, there is no ability to configure custom converters for complex domain `payload` instances or `header` values.
127
-
There is also no way to provide a custom `MongoTemplate` (or `MappingMongoConverter`).
128
-
To achieve these capabilities, an alternative MongoDB `MessageStore` implementation has been introduced (we describe it next).
126
+
127
+
Starting with version 5.1.6, the `MongoDbMessageStore` can be configured with custom converters which are propagated into an internal `MappingMongoConverter` implementation.
128
+
See `MongoDbMessageStore.setCustomConverters(Object... customConverters)` JavaDocs for more information.
129
129
130
130
Spring Integration 3.0 introduced the `ConfigurableMongoDbMessageStore`.
131
131
It implements both the `MessageStore` and `MessageGroupStore` interfaces.
0 commit comments