Explicitly set DynamicDestinationResolver on JmsTemplate
ProprietarySpring Framework 7.0 changed the default DestinationResolver for JmsTemplate from DynamicDestinationResolver to SimpleDestinationResolver, which caches Session-resolved Queue and Topic instances. This recipe adds an explicit call to setDestinationResolver(new DynamicDestinationResolver()) to preserve the previous behavior. The caching behavior of SimpleDestinationResolver should be fine for most JMS brokers, so this explicit configuration can be removed once compatibility with the new default is verified.
io. moderne. java. spring. framework7. AddDynamicDestinationResolverToJmsTemplatemod run . --recipe= io. moderne. java. spring. framework7. AddDynamicDestinationResolverToJmsTemplateInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.