Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    public interface SessionCallback<T>

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

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

Since:
  1.1
Author:
  Mark Pollack
See Also:
  `JmsTemplate.execute(SessionCallback)`

Method Summary
`T` | `doInJms(javax.jms.Session session)` Execute any number of operations against the supplied JMS `Session`, possibly returning a result.

Method Detail

### doInJms

    T doInJms(javax.jms.Session session)
              throws javax.jms.JMSException

  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:
    `javax.jms.JMSException` - if thrown by JMS API methods

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD