mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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