org.activemq.pool
Class PooledConnectionFactory

java.lang.Object
  extended by org.activemq.pool.PooledConnectionFactory
All Implemented Interfaces:
ConnectionFactory, Service

public class PooledConnectionFactory
extends Object
implements ConnectionFactory, Service

Version:
$Revision: 1.1 $

Constructor Summary
PooledConnectionFactory()
           
PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
           
PooledConnectionFactory(String brokerURL)
           
 
Method Summary
 Connection createConnection()
           
protected  ActiveMQConnection createConnection(ConnectionKey key)
           
 Connection createConnection(String userName, String password)
           
 ActiveMQConnectionFactory getConnectionFactory()
           
 void setConnectionFactory(ActiveMQConnectionFactory connectionFactory)
           
 void start()
          Called to start the service
 void stop()
          Called to shutdown the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledConnectionFactory

public PooledConnectionFactory()

PooledConnectionFactory

public PooledConnectionFactory(String brokerURL)

PooledConnectionFactory

public PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
Method Detail

getConnectionFactory

public ActiveMQConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(ActiveMQConnectionFactory connectionFactory)

createConnection

public Connection createConnection()
                            throws JMSException
Specified by:
createConnection in interface ConnectionFactory
Throws:
JMSException

createConnection

public Connection createConnection(String userName,
                                   String password)
                            throws JMSException
Specified by:
createConnection in interface ConnectionFactory
Throws:
JMSException

createConnection

protected ActiveMQConnection createConnection(ConnectionKey key)
                                       throws JMSException
Throws:
JMSException

start

public void start()
           throws JMSException
Description copied from interface: Service
Called to start the service

Specified by:
start in interface Service
Throws:
JMSException
See Also:
Service.start()

stop

public void stop()
          throws JMSException
Description copied from interface: Service
Called to shutdown the service

Specified by:
stop in interface Service
Throws:
JMSException
See Also:
Service.stop()


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.