Transactions, Spring.
jmsTemplate.convertAndSend(DESTINATION, MESSAGE); } The simple code above is sufficient to allow a save-operation in the database and a publish-operation in message queue within a JTA transaction. Transactions Support in SpringBoot As I mentioned before there are 2 types of transaction management