From ff8819d1b381c8026dacc17f56a11f574b69792d Mon Sep 17 00:00:00 2001 From: abilan Date: Fri, 12 May 2023 17:31:47 -0400 Subject: [PATCH 1/2] GH-5871: Add missed `order` attr to XSDs Fixes https://github.com/spring-projects/spring-integration/issues/5871 --- .../xml/spring-integration-cassandra.xsd | 11 ++++++- .../jmx/config/spring-integration-jmx.xsd | 16 ++++++++++ .../mail/config/spring-integration-mail.xsd | 19 +---------- .../config/spring-integration-mongodb.xsd | 8 +++++ .../redis/config/spring-integration-redis.xsd | 10 +++++- .../stomp/config/spring-integration-stomp.xsd | 10 ++++++ .../config/spring-integration-websocket.xsd | 10 ++++++ .../ws/config/spring-integration-ws.xsd | 21 ++---------- .../xml/config/spring-integration-xml.xsd | 9 ++++++ .../xmpp/config/spring-integration-xmpp.xsd | 32 +++---------------- 10 files changed, 79 insertions(+), 67 deletions(-) diff --git a/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd b/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd index 989bcef2a28..bcd56c2059b 100644 --- a/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd +++ b/spring-integration-cassandra/src/main/resources/org/springframework/integration/config/xml/spring-integration-cassandra.xsd @@ -187,9 +187,18 @@ - + + + + + Specifies the order for invocation when this + endpoint is connected as a + subscriber to a channel. + + + diff --git a/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd b/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd index bb21b1ef804..b8e589ea8b6 100644 --- a/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd +++ b/spring-integration-jmx/src/main/resources/org/springframework/integration/jmx/config/spring-integration-jmx.xsd @@ -163,6 +163,14 @@ minOccurs="0" maxOccurs="1"/> + + + + The order for dispatching when the channel adapter is connected + as a subscriber to a 'SubscribableChannel'. + + + @@ -328,6 +336,14 @@ + + + + The order for dispatching when the channel adapter is connected + as a subscriber to a 'SubscribableChannel'. + + + diff --git a/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd b/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd index b38af9d71a5..5e782c336e2 100644 --- a/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd +++ b/spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd @@ -370,24 +370,7 @@ - - - - - - - - - - - - - - - - - - + diff --git a/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd b/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd index 2403ea04d00..41c7214882f 100644 --- a/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd +++ b/spring-integration-mongodb/src/main/resources/org/springframework/integration/mongodb/config/spring-integration-mongodb.xsd @@ -126,6 +126,14 @@ + + + + Specifies the order for invocation when this adapter is connected as a + subscriber to a SubscribableChannel. + + + diff --git a/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd b/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd index 04d02e23798..21963f70ee4 100644 --- a/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd +++ b/spring-integration-redis/src/main/resources/org/springframework/integration/redis/config/spring-integration-redis.xsd @@ -343,6 +343,14 @@ + + + + Specifies the order for invocation when this adapter is connected as a + subscriber to a SubscribableChannel. + + + @@ -674,7 +682,7 @@ .reply' as its key. A new UUID is used for each interaction. ]]> diff --git a/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd b/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd index f6b31c90443..41b41b8e2eb 100644 --- a/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd +++ b/spring-integration-stomp/src/main/resources/org/springframework/integration/stomp/config/spring-integration-stomp.xsd @@ -107,6 +107,16 @@ + + + + Specifies the order for invocation when this endpoint is connected as a + subscriber to a channel. This is particularly relevant when that channel + is using a "failover" dispatching strategy. It has no effect when this + endpoint itself is a Polling Consumer for a channel with a queue. + + + diff --git a/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd b/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd index 6f739885d05..79f79f0bbf0 100644 --- a/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd +++ b/spring-integration-websocket/src/main/resources/org/springframework/integration/websocket/config/spring-integration-websocket.xsd @@ -358,6 +358,16 @@ + + + + Specifies the order for invocation when this endpoint is connected as a + subscriber to a channel. This is particularly relevant when that channel + is using a "failover" dispatching strategy. It has no effect when this + endpoint itself is a Polling Consumer for a channel with a queue. + + + diff --git a/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd b/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd index d0a8ee1afa8..7c9ee390f1e 100644 --- a/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd +++ b/spring-integration-ws/src/main/resources/org/springframework/integration/ws/config/spring-integration-ws.xsd @@ -87,7 +87,7 @@ ]]> - + Specify whether this outbound gateway must return a non-null value. This value is @@ -495,24 +495,7 @@ this list can also be simple patterns to be matched against the header names (e. - - - - - - - - - - - - - - - - - - + diff --git a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd index b24e7dc783f..03ec3485a3c 100644 --- a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd +++ b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd @@ -1,3 +1,4 @@ + + + + + The order for dispatching when this router is connected + as a subscriber to a 'SubscribableChannel'. + + + diff --git a/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd b/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd index 714493e3072..a65c28b8b62 100644 --- a/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd +++ b/spring-integration-xmpp/src/main/resources/org/springframework/integration/xmpp/config/spring-integration-xmpp.xsd @@ -112,7 +112,7 @@ A SpEL expression to evaluate a 'payload' with the incoming 'org.jivesoftware.smack.packet.Message' as root object. It useful in case of custom (XEP) XMPP interactions, e.g. GCM. - By default a Message 'body' is used as 'payload'. + By default, a Message 'body' is used as 'payload'. The '#extension' SpEL variable is registered in the evaluation context if one and only one extension is present in the Message. Replaces 'extract-payload' attribute since 4.3. @@ -295,7 +295,7 @@ - The id of the user you sending a message to (e.g., user@gmail.com) + The id of the user the message is sent to (e.g., user@gmail.com) @@ -333,7 +333,7 @@ - Value of this header inside of a Message + Value of this header in a Message @@ -366,31 +366,7 @@ - - - - - - - - - The receiving Message channel of this endpoint - - - - - - - - - - - - Identifies the Message channel where Message will be sent after it's being processed by this - endpoint - - - + From 4a8dfa05efd1f4f045b7bf17180819e05953fb4f Mon Sep 17 00:00:00 2001 From: abilan Date: Wed, 17 May 2023 16:19:51 -0400 Subject: [PATCH 2/2] * Fix `spring-integration-xml.xsd` for duplicates --- .../xml/config/spring-integration-xml.xsd | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd index 03ec3485a3c..8f54320f1fb 100644 --- a/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd +++ b/spring-integration-xml/src/main/resources/org/springframework/integration/xml/config/spring-integration-xml.xsd @@ -1,4 +1,3 @@ - - + Reference to the XPathExpression instance to be @@ -535,13 +534,13 @@ - representing channel names. Typically such a list + representing channel names. Typically, such a list will contain a single channel name. However, based on the results of an XPath Expression, the XPath router can also take on the characteristics of a Recipient List Router if the XPath Expression - returns more then one value. In that case, the - List will contain more then one channel + returns more than one value. In that case, the + List will contain more than one channel name and consequently Messages will be sent to all channels in the list. ]]> @@ -588,14 +587,6 @@ - - - - The order for dispatching when this router is connected - as a subscriber to a 'SubscribableChannel'. - - -