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 SessionborrowSession()protected SessioncreateSession()ConnectiongetConnection()ConnectionFactorygetConnectionFactory()voidreturnSession(Session session)voidsetConnection(Connection connection)voidsetConnectionFactory(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
-
-