|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerSessionFactory
SPI interface to be implemented by components that manage JMS ServerSessions. Usually, but not necessarily, an implementation of this interface will hold a pool of ServerSessions.
The passed-in ListenerSessionManager has to be used for creating and executing JMS Sessions. This session manager is responsible for registering a MessageListener with all Sessions that it creates. Consequently, the ServerSessionFactory implementation has to concentrate on the actual lifecycle (e.g. pooling) of JMS Sessions, but is not concerned about Session creation or execution.
ListenerSessionManager
,
ServerSessionMessageListenerContainer
Method Summary | |
---|---|
void |
close(ListenerSessionManager sessionManager)
Deprecated. Close all ServerSessions for the given session manager. |
ServerSession |
getServerSession(ListenerSessionManager sessionManager)
Deprecated. Retrieve a JMS ServerSession for the given session manager. |
Method Detail |
---|
ServerSession getServerSession(ListenerSessionManager sessionManager) throws JMSException
sessionManager
- the session manager to use for
creating and executing new listener sessions
(implicitly indicating the target listener to invoke)
JMSException
- if retrieval failedvoid close(ListenerSessionManager sessionManager)
sessionManager
- the session manager used for
creating and executing new listener sessions
(implicitly indicating the target listener)
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |