Я работаю над весенней интеграцией dsl. Требование - прочитать XML-сообщение из очереди на основе значения заголовка сообщения, мне нужно вызвать другую службу. Мне удалось получить сообщение из очереди, но не смог написать код в dsl для демаршалинга XML-сообщения в объект. Может ли кто-нибудь помочь и у меня есть демаршаллер, но я не могу подключить его к dsl
IntegrationFlows
.from(Jms.inboundGateway(connectionFactory)
.destination(someQueue)
.configureListenerContainer(spec -> spec.get().setSessionTransacted(true)))
.transform(??)