spring-framework / org.springframework.jms.core / SessionCallback / doInJms

doInJms

@Nullable abstract fun doInJms(session: Session): T

Execute any number of operations against the supplied JMS Session, possibly returning a result.

Parameters

session - the JMS Session

Exceptions

javax.jms.JMSException - if thrown by JMS API methods

Return
a result object from working with the Session, if any (or null if none)