## org.springframework.jms.listener.serversession
Interface ListenerSessionManager

All Known Implementing Classes:
  ServerSessionMessageListenerContainer, ServerSessionMessageListenerContainer102

Deprecated. as of Spring 2.5, in favor of DefaultMessageListenerContainer and JmsMessageEndpointManager. To be removed in Spring 3.0.

    public interface ListenerSessionManager

SPI interface for creating and executing JMS Sessions, pre-populated with a specific MessageListener. Implemented by ServerSessionMessageListenerContainer, accessed by ServerSessionFactory implementations.

Effectively, an instance that implements this interface represents a message listener container for a specific listener and destination.

Since:
  2.0
Author:
  Juergen Hoeller
See Also:
  `ServerSessionFactory`, `ServerSessionMessageListenerContainer`

Method Summary
`Session` `createListenerSession()` Deprecated. Create a new JMS Session, pre-populated with this manager's MessageListener.
`void` `executeListenerSession(Session session)` Deprecated. Execute the given JMS Session, triggering its MessageListener with pre-loaded messages.

Method Detail

### createListenerSession

    Session createListenerSession()
                                  throws JMSException

  Deprecated.
  Create a new JMS Session, pre-populated with this manager's MessageListener.

  Returns:
    the new JMS Session
  Throws:
    `JMSException` - if Session creation failed
  See Also:
    `Session.setMessageListener(javax.jms.MessageListener)`

### executeListenerSession

    void executeListenerSession(Session session)

  Deprecated.
  Execute the given JMS Session, triggering its MessageListener with pre-loaded messages.

  Parameters:
    `session` - the JMS Session to invoke
  See Also:
    `Session.run()`

Copyright © 2002-2008 The Spring Framework.