org.activemq.pool
Class PooledConnectionFactory
java.lang.Object
org.activemq.pool.PooledConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory, Service
- public class PooledConnectionFactory
- extends Object
- implements ConnectionFactory, Service
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledConnectionFactory
public PooledConnectionFactory()
PooledConnectionFactory
public PooledConnectionFactory(String brokerURL)
PooledConnectionFactory
public PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
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-2007 Protique, Ltd.. All Rights Reserved.