public interface SessionCallback<T>
Session.
To be used with the JmsTemplate.execute(SessionCallback)
method, often implemented as an anonymous inner class.
JmsTemplate.execute(SessionCallback)T doInJms(Session session) throws JMSException
Session, possibly returning a result.session - the JMS SessionSession, if any (so can be null)JMSException - if thrown by JMS API methods