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
JIRA: https://jira.spring.io/browse/INT-4489
Make `MessageHistoryConfigurer` as a `BeanPostProcessor` and apply
tracking logic to processed beans if it is already started.
**Cherry-pick to 5.0.x**
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/history/MessageHistoryConfigurer.java
+63-44Lines changed: 63 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2016 the original author or authors.
2
+
* Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: src/reference/asciidoc/message-history.adoc
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,7 @@ This feature might be useful to temporarily turn on history to analyze a system.
73
73
The MBean's object name is `"<domain>:name=messageHistoryConfigurer,type=MessageHistoryConfigurer"`.
74
74
75
75
IMPORTANT: If multiple beans (declared by `@EnableMessageHistory` and/or `<message-history/>`) they all must have identical component name patterns (when trimmed and sorted).
76
-
*Do not use a generic
77
-
`<bean/>` definition for the `MessageHistoryConfigurer`*.
76
+
*Do not use a generic `<bean/>` definition for the `MessageHistoryConfigurer`*.
78
77
79
78
NOTE: Remember that by definition the Message History header is immutable (you can't re-write history, although some try).
80
79
Therefore, when writing Message History values, the components are either creating brand new Messages (when the component is an origin), or they are copying the history from a request Message, modifying it and setting the new list on a reply Message.
0 commit comments