The unwrapping code introduced with commit into JmsAnnotationDrivenConfiguration is causing issue with Narayana integration if using pooled ConnectionFactory because it unwraps the integration "magic" away.
Reproduce with attached demo. Btw. Narayana integration from https://github.com/snowdrop/narayana-spring-boot needs to be rebuilt as SNAPSHOT because latest 3.3.0 version is not build compatible with Spring Boot 3.4.0. (snowdrop/narayana-spring-boot#172)
demo.zip
FYI @snicoll