org.apache.activemq.pool
Class AmqJNDIPooledConnectionFactory

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

public class AmqJNDIPooledConnectionFactory
extends PooledConnectionFactory
implements JNDIStorableInterface

AmqJNDIPooledConnectionFactory.java Created by linus on 2008-03-07.


Constructor Summary
AmqJNDIPooledConnectionFactory()
           
AmqJNDIPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
           
AmqJNDIPooledConnectionFactory(String brokerURL)
           
 
Method Summary
 void buildFromProperties(Properties properties)
           
 Properties getProperties()
          Get the properties from this instance for storing in JNDI
 Reference getReference()
          Retrive a Reference for this instance to store in JNDI
 void populateProperties(Properties props)
           
 void setProperties(Properties props)
          set the properties for this instance as retrieved from JNDI
 
Methods inherited from class org.apache.activemq.pool.PooledConnectionFactory
clear, createConnection, createConnection, createConnection, createConnectionPool, getConnectionFactory, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActive, getMaximumActiveSessionPerConnection, getNumConnections, getPoolFactory, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, setBlockIfSessionPoolIsFull, setConnectionFactory, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActive, setMaximumActiveSessionPerConnection, setPoolFactory, setTimeBetweenExpirationCheckMillis, setTimeBetweenExpirationCheckMillis, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmqJNDIPooledConnectionFactory

public AmqJNDIPooledConnectionFactory()

AmqJNDIPooledConnectionFactory

public AmqJNDIPooledConnectionFactory(String brokerURL)

AmqJNDIPooledConnectionFactory

public AmqJNDIPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
Method Detail

setProperties

public void setProperties(Properties props)
set the properties for this instance as retrieved from JNDI

Specified by:
setProperties in interface JNDIStorableInterface
Parameters:
props -

getProperties

public Properties getProperties()
Get the properties from this instance for storing in JNDI

Specified by:
getProperties in interface JNDIStorableInterface
Returns:
the properties

getReference

public Reference getReference()
                       throws NamingException
Retrive a Reference for this instance to store in JNDI

Specified by:
getReference in interface Referenceable
Returns:
the built Reference
Throws:
NamingException - if error on building Reference

buildFromProperties

public void buildFromProperties(Properties properties)

populateProperties

public void populateProperties(Properties props)


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