Package org.apache.activemq.web
Class SessionPool
- java.lang.Object
-
- org.apache.activemq.web.SessionPool
-
public class SessionPool extends Object
A simple pool of JMS Session objects intended for use by Queue browsers.
-
-
Constructor Summary
Constructors Constructor Description SessionPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session
borrowSession()
protected Session
createSession()
Connection
getConnection()
ConnectionFactory
getConnectionFactory()
void
returnSession(Session session)
void
setConnection(Connection connection)
void
setConnectionFactory(ConnectionFactory connectionFactory)
-
-
-
Method Detail
-
getConnection
public Connection getConnection() throws JMSException
- Throws:
JMSException
-
setConnection
public void setConnection(Connection connection)
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
-
setConnectionFactory
public void setConnectionFactory(ConnectionFactory connectionFactory)
-
borrowSession
public Session borrowSession() throws JMSException
- Throws:
JMSException
-
returnSession
public void returnSession(Session session)
-
createSession
protected Session createSession() throws JMSException
- Throws:
JMSException
-
-