Search code examples
springjmsspring-jmsjmstemplate

what does the purpose of JMSTemplate.execute


Anyone can explain the real purpose of JMSTemplate.execute method. It can accept a session callback. The Spring document does not say any details about it.


Solution

  • The Spring documentation is pretty specific about its JMS capabilities, and it ends with a brief description of JmsTemplate.execute(). That coupled with the javadoc for JmsTemplate.execute() and the SessionCallback should give you a pretty clear idea of what it does.