Class JmsServerSessionPool
- java.lang.Object
-
- org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool
-
- All Implemented Interfaces:
javax.jms.ServerSessionPool
public class JmsServerSessionPool extends Object implements javax.jms.ServerSessionPool
A generic jms session pool.- Author:
- Adrian Brock
-
-
Constructor Summary
Constructors Constructor Description JmsServerSessionPool(JmsActivation activation)Create a new session pool
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsActivationgetActivation()javax.jms.ServerSessiongetServerSession()protected voidreturnServerSession(JmsServerSession session)Return the server sessionprotected voidsetupConsumer()Setup the connection consumerprotected voidsetupSessions()Setup the sessionsvoidstart()Start the server session poolvoidstop()Stop the server session poolprotected voidteardownConsumer()Stop the connection consumerprotected voidteardownSessions()Stop the sessions
-
-
-
Constructor Detail
-
JmsServerSessionPool
public JmsServerSessionPool(JmsActivation activation)
Create a new session pool- Parameters:
activation- the jms activation
-
-
Method Detail
-
getActivation
public JmsActivation getActivation()
- Returns:
- the activation
-
start
public void start() throws ExceptionStart the server session pool- Throws:
Exception- for any error
-
stop
public void stop()
Stop the server session pool
-
getServerSession
public javax.jms.ServerSession getServerSession() throws javax.jms.JMSException- Specified by:
getServerSessionin interfacejavax.jms.ServerSessionPool- Throws:
javax.jms.JMSException
-
returnServerSession
protected void returnServerSession(JmsServerSession session)
Return the server session- Parameters:
session- the session
-
setupSessions
protected void setupSessions() throws ExceptionSetup the sessions- Throws:
Exception- for any error
-
teardownSessions
protected void teardownSessions()
Stop the sessions
-
setupConsumer
protected void setupConsumer() throws ExceptionSetup the connection consumer- Throws:
Exception- for any error
-
teardownConsumer
protected void teardownConsumer()
Stop the connection consumer
-
-