Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Transaction session has not rollback，causing message chaos [SPR-16764] #21305
JmsTemplate with sessionTransacted does not call rollback method when sending message error,maybe jms provider has received this message but network time out. But then users will use this session's producer to send a new message, and commit it, which will commit all the two message. In this situation, users will be very confused about the first error message.
why JmsTemplate does cant call rollback when error , but auto call commit method when sending success.