org.apache.activemq.web
Class SessionPool

java.lang.Object
  extended by 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
SessionPool()
           
 
Method Summary
 Session borrowSession()
           
protected  Session createSession()
           
 Connection getConnection()
           
 ConnectionFactory getConnectionFactory()
           
 void returnSession(Session session)
           
 void setConnection(Connection connection)
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPool

public SessionPool()
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


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.