public interface

SessionCallback

org.springframework.jms.core.SessionCallback<T>

Class Overview

Callback for executing any number of operations on a provided Session.

To be used with the execute(SessionCallback) method, often implemented as an anonymous inner class.

Summary

Public Methods
abstract T doInJms(Session session)
Execute any number of operations against the supplied JMS Session, possibly returning a result.

Public Methods

public abstract T doInJms (Session session)

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

Parameters
session the JMS Session
Returns
  • a result object from working with the Session, if any (so can be null)
Throws
if thrown by JMS API methods
JMSException