public interface SessionCallback<T>
Session.
To be used with the JmsTemplate.execute(SessionCallback)
method, often implemented as an anonymous inner class.
JmsTemplate.execute(SessionCallback)| Modifier and Type | Method and Description |
|---|---|
T |
doInJms(javax.jms.Session session)
Execute any number of operations against the supplied JMS
Session, possibly returning a result. |
T doInJms(javax.jms.Session session) throws javax.jms.JMSException
Session, possibly returning a result.session - the JMS SessionSession, if any (so can be null)javax.jms.JMSException - if thrown by JMS API methodsCopyright © 2015. All rights reserved.