public interface BrowserCallback<T>
To be used with JmsTemplate's callback methods that take a BrowserCallback argument, often implemented as an anonymous inner class.
JmsTemplate.browse(BrowserCallback)
,
JmsTemplate.browseSelected(String, BrowserCallback)
T doInJms(Session session, QueueBrowser browser) throws JMSException
javax.jms.Session
and javax.jms.QueueBrowser
.
The message producer is not associated with any destination.
session
- the JMS Session
object to usebrowser
- the JMS QueueBrowser
object to useSession
, if any (can be null
)javax.jms.JMSException
- if thrown by JMS API methodsJMSException