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)
Modifier and Type | Method and Description |
---|---|
T |
doInJms(Session session,
QueueBrowser browser)
Perform operations on the given
Session and QueueBrowser . |
T doInJms(Session session, QueueBrowser browser) throws JMSException
Session
and 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
)JMSException
- if thrown by JMS API methods