Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Spring overrides user requested STOMP version [SPR-16844] #21384
There is currently no way for a client application to set the accepted STOMP version value. In the org.springframework.messaging.simp.stomp.DefaultStompSession.afterConnected() method, the code calls
This overrides any version that the application may have requested in the StompHeaders. The preferred behavior would be to check the StompHeaders for an "accept-version" header and if found use that value instead of the hard-coded "1.1,1.2" value.
The specific use case I have for this feature is that there is currently a bug in the Apache Artemis message broker that affects STOMP 1.2 but not STOMP 1.1. Therefore to avoid this bug I would like to specify STOMP 1.1 but using a Spring based client I am unable to do so.