Sébastien Deleuze
9bec52b1ec
Add trusted packages to MappingJackson2MessageConverter
...
This commit introduces trusted packages, specified via the related
setter for untrusted use cases. It allows explicit configuration
of which Java packages are allowed to be deserialized.
Closes gh-36791
2026-06-08 15:13:43 +02:00
Sébastien Deleuze
fe68e337b2
Add trusted packages to JacksonJsonMessageConverter
...
This commit introduces trusted packages, specified via the related
setter for untrusted use cases. It allows explicit configuration
of which Java packages are allowed to be deserialized.
See gh-36791
2026-06-08 15:13:43 +02:00
Juergen Hoeller
0b77c3df45
Detect back-off exhaustion at invoker level as well
...
See gh-36809
2026-05-29 13:23:30 +02:00
Juergen Hoeller
1e45ad8fa6
Restore back-off on listener setup failure
...
Supports exponential back-off as well now.
Closes gh-36809
2026-05-27 18:58:37 +02:00
Juergen Hoeller
4c854d564c
Avoid endless re-interruption loop on shutdown
...
Closes gh-36506
2026-03-21 12:04:29 +01:00
Sam Brannen
9e6504b05a
Remove unnecessary parentheses in assertThat() arguments
...
Search: assertThat\(\(\s*((?:[^()]+|\([^()]*\))+)\s*\)\)(\s*\..+)
Replace: assertThat($1)$2
See gh-36504
2026-03-20 10:54:31 +01:00
Sam Brannen
a40ec44cb7
Convert assertThat(x instanceof X).isTrue() to assertThat(x).isInstanceOf()
...
Search: assertThat\((.+?) instanceof (.+?)\)(.*?)\.isTrue\(\)
Replace: assertThat($1)$3.isInstanceOf($2.class)
See gh-36504
2026-03-20 10:54:23 +01:00
Sam Brannen
4548f1ec66
Inline conditions in assertThat() statements
...
Search: assertThat\(conditions?[0-9]?\)
See gh-36504
2026-03-20 10:53:54 +01:00
Sam Brannen
4c14abf0cd
Remove obsolete "test" prefix from test method names
...
Although this commit also changes the visibility of some test methods
to package-private, the remainder of that task will be addressed in
conjunction with gh-36496.
Closes gh-36495
2026-03-18 18:16:15 +01:00
Sam Brannen
4e8acb9ef2
Polish contribution
...
See gh-36448
2026-03-11 16:45:30 +01:00
gbouwen
dbbbf37ac9
Update exception message in JacksonJsonMessageConverter
...
Closes gh-36448
Signed-off-by: gbouwen <57719521+gbouwen@users.noreply.github.com >
2026-03-11 16:41:19 +01:00
Juergen Hoeller
75705bcbb1
Restore early MessageConsumer creation for temporary queue
...
Closes gh-36321
2026-02-13 13:55:08 +01:00
Juergen Hoeller
1c4b20287f
Use correlation id for explicit sendAndReceive response queue
...
See gh-36162
See gh-36177
2026-01-21 14:46:36 +01:00
Sam Brannen
357205723f
Simplify tests
2026-01-20 13:54:19 +01:00
Sam Brannen
4d4adeb2c6
Polish Javadoc
2026-01-18 16:52:04 +01:00
Michał Pisarski
3f390d55f0
Add overloaded sendAndReceive methods to JmsOperations and JmsTemplate to use explicit response queue
...
Signed-off-by: Michał Pisarski <pisekfm@o2.pl >
2026-01-17 00:16:15 +01:00
Juergen Hoeller
48bedd0af1
Revise DefaultMessageListenerContainer connection recovery
...
Includes listener validation for consistent back-off behavior.
Closes gh-36143
2026-01-16 22:38:01 +01:00
Juergen Hoeller
62fd09dfa5
Polishing
2026-01-14 22:05:06 +01:00
Sam Brannen
948af8bcc6
Fix typo in Javadoc
2026-01-14 11:37:37 +01:00
Sam Brannen
00606d2171
Use default destination name with JmsClient.sendAndReceive() and headers
...
Prior to this commit, if the JmsClient was configured with a default
destination name (instead of a default Destination), invoking the
sendAndReceive() variant which accepts a map of headers resulted in an
exception stating that a default destination is required.
To address that, this commit overrides the
convertSendAndReceive(Object, Map<String, Object>, Class<T>, MessagePostProcessor)
method in JmsMessagingTemplate to add support for both a default
Destination and a default destination name.
Closes gh-36118
2026-01-09 15:04:47 +01:00
Juergen Hoeller
07c0213f20
Polishing
2025-12-04 00:12:31 +01:00
Juergen Hoeller
71d18ebabc
Improve debug log for received message
2025-12-01 15:03:08 +01:00
Juergen Hoeller
3ccb0786db
Clear remaining invoker resources when releasing shared Connection
...
Closes gh-35932
2025-12-01 15:03:00 +01:00
Juergen Hoeller
9d4abb63d8
Clarify JMS sessionTransacted flag for local versus global transaction
...
Closes gh-35897
2025-11-26 15:06:22 +01:00
Sébastien Deleuze
8ec9ab6698
Add builder-based constructors to Jackson 3 infrastructure
...
This commit also polishes documentation, constructor parameter and
field names.
Closes gh-35597
2025-10-15 11:49:55 +02:00
Juergen Hoeller
080bca0b23
Deprecate TransactionCallbackWithoutResult
...
Closes gh-35606
2025-10-11 13:25:40 +02:00
Juergen Hoeller
1333669e2c
Introduce SimpleDestinationResolver as new default for common setups
...
Closes gh-35456
2025-10-02 18:28:59 +02:00
Sébastien Deleuze
7635ac38f6
Use uppercase for classpath-related static final field names
...
Closes gh-35525
2025-09-22 18:32:14 +02:00
Sam Brannen
0c61ac956b
Add missing @Override annotations
...
... and suppress "serial" warnings
2025-09-22 13:20:37 +02:00
Sébastien Deleuze
79738d921a
Upgrade to Jackson 3.0.0-rc10
...
See gh-35521
2025-09-22 11:16:25 +02:00
Sébastien Deleuze
dc26aaa0ec
Use JsonMapper instead of ObjectMapper when relevant
...
This commit updates Jackson 3 JSON support to use JsonMapper
instead of ObjectMapper in converters, codecs and view constructors.
As a consequence, AbstractJacksonDecoder, AbstractJacksonEncoder,
AbstractJacksonHttpMessageConverter and JacksonCodecSupport are
now parameterized with <T extends ObjectMapper>.
Closes gh-35282
2025-08-22 18:39:23 +02:00
Sébastien Deleuze
0389e3e3af
Revert "Use JsonMapper instead of ObjectMapper when relevant"
...
This reverts commit d115f36400 .
See gh-35282
2025-08-12 15:21:20 +02:00
Sébastien Deleuze
d115f36400
Use JsonMapper instead of ObjectMapper when relevant
...
This commit updates Jackson 3 support to use JsonMapper instead
of ObjectMapper in converter, codec and view constructors.
Closes gh-35282
2025-08-12 10:36:37 +02:00
Brian Clozel
ec87d90c9b
Post process outgoing messages in JMS clients
...
Prior to this commit, the `JmsTemplate` would use `MessagePostProcessor`
for mutating JMS messages before they are being sent, but only if the
method takes a post processor as an argument.
The main use case so far is to mutate messages after they've been
created by a `MessageConverter` from a payload.
This commit updates the `JmsClient` to use `MessagePostProcessor` more
broadly, for all outgoing messages (converted or not). This brings an
interception-like mechanism for clients to enrich the message before
being sent.
This change also updates the `JmsClient` static factories and
introduces a Builder, allowing for more configuration options: multiple
message converters and message post processors.
Closes gh-35271
2025-08-01 15:40:32 +02:00
Juergen Hoeller
2b56b759af
Fix JmsClient visibility
...
See gh-32501
2025-07-07 16:06:28 +02:00
Juergen Hoeller
56f16a8817
Add usage examples to JmsClient javadoc
...
See gh-32501
2025-07-07 14:08:33 +02:00
NeatGuyCoding
d957f8bb5d
Fix copy-n-paste errors in JmsClient Javadoc
...
Closes gh-35163
Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com >
2025-07-07 12:41:35 +02:00
Juergen Hoeller
0111329214
Consistently introspect constructor-provided JmsTemplate
...
See gh-32501
2025-07-04 21:50:20 +02:00
Juergen Hoeller
8cb901825b
Merge branch '6.2.x'
...
# Conflicts:
# spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
# spring-jms/src/main/java/org/springframework/jms/core/JmsTemplate.java
# spring-messaging/src/main/java/org/springframework/messaging/core/AbstractDestinationResolvingMessagingTemplate.java
# spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageReceivingTemplate.java
# spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessagingTemplate.java
# spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java
# spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java
2025-07-04 18:31:13 +02:00
Juergen Hoeller
65e5c14245
Polishing
2025-07-04 18:20:27 +02:00
Juergen Hoeller
9596b70b2a
Consistent nullability and exception declarations
...
Closes gh-35159
2025-07-04 18:20:19 +02:00
Juergen Hoeller
6dc3c11828
Introduce JmsClient with configurable settings per operation
...
Closes gh-32501
Closes gh-26840
2025-07-04 17:36:33 +02:00
Sam Brannen
cf06efece6
Merge branch '6.2.x'
2025-07-04 11:49:10 +02:00
Sam Brannen
5da8d5e795
Remove unnecessary final declarations in JmsTemplate
...
This commit removes unnecessary `final` declarations for parameters that
are "effectively final".
2025-07-04 11:38:30 +02:00
Sam Brannen
133f330850
Declare remaining messageSelector parameters in JmsOperations as @Nullable
...
Closes gh-35151
2025-07-04 11:35:49 +02:00
Jiandong Ma
b6675edb92
Declare messageSelector parameters in JmsOperations as @Nullable
...
See gh-35151
Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com >
2025-07-03 19:17:49 +02:00
Juergen Hoeller
196b7ec275
Deprecate (Jdbc)DaoSupport classes (including JmsGatewaySupport)
...
Closes gh-35145
2025-07-02 11:12:57 +02:00
Spring Builds
16edf9867a
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
2025-06-17 16:23:50 +02:00
Spring Builds
aee29b7f30
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
2025-06-17 15:54:58 +02:00
Sam Brannen
8b9e620084
Allow FixedBackOff to be constructed with only a custom interval
...
This commit introduces two new constructors:
- FixedBackOff(long)
- FixedBackOff(Duration)
Closes gh-35028
2025-06-11 13:26:16 +02:00