org.activemq.pool
Class PooledConnectionFactory

java.lang.Object
  extended byorg.activemq.pool.PooledConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, Service

public class PooledConnectionFactory
extends java.lang.Object
implements javax.jms.ConnectionFactory, Service

Version:
$Revision: 1.1 $

Constructor Summary
PooledConnectionFactory()
           
PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
           
PooledConnectionFactory(java.lang.String brokerURL)
           
 
Method Summary
 javax.jms.Connection createConnection()
           
protected  ActiveMQConnection createConnection(ConnectionKey key)
           
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.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(java.lang.String brokerURL)

PooledConnectionFactory

public PooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
Method Detail

getConnectionFactory

public ActiveMQConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(ActiveMQConnectionFactory connectionFactory)

createConnection

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

createConnection

public javax.jms.Connection createConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
Specified by:
createConnection in interface javax.jms.ConnectionFactory
Throws:
javax.jms.JMSException

createConnection

protected ActiveMQConnection createConnection(ConnectionKey key)
                                       throws javax.jms.JMSException
Throws:
javax.jms.JMSException

start

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

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

stop

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

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


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