org.apache.activemq.pool
Class AmqJNDIPooledConnectionFactory
java.lang.Object
org.apache.activemq.pool.PooledConnectionFactory
org.apache.activemq.pool.AmqJNDIPooledConnectionFactory
- All Implemented Interfaces:
- javax.jms.ConnectionFactory, javax.naming.Referenceable, JNDIStorableInterface, Service
public class AmqJNDIPooledConnectionFactory
- extends PooledConnectionFactory
- implements JNDIStorableInterface
AmqJNDIPooledConnectionFactory.java
Created by linus on 2008-03-07.
Method Summary |
void |
buildFromProperties(java.util.Properties properties)
|
java.util.Properties |
getProperties()
Get the properties from this instance for storing in JNDI |
javax.naming.Reference |
getReference()
Retrive a Reference for this instance to store in JNDI |
void |
populateProperties(java.util.Properties props)
|
void |
setProperties(java.util.Properties props)
set the properties for this instance as retrieved from JNDI |
Methods inherited from class org.apache.activemq.pool.PooledConnectionFactory |
createConnection, createConnection, createConnection, createConnectionPool, createPoolFactory, getConnectionFactory, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActive, getPoolFactory, setConnectionFactory, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActive, setPoolFactory, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmqJNDIPooledConnectionFactory
public AmqJNDIPooledConnectionFactory()
AmqJNDIPooledConnectionFactory
public AmqJNDIPooledConnectionFactory(java.lang.String brokerURL)
AmqJNDIPooledConnectionFactory
public AmqJNDIPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
setProperties
public void setProperties(java.util.Properties props)
- set the properties for this instance as retrieved from JNDI
- Specified by:
setProperties
in interface JNDIStorableInterface
- Parameters:
props
-
getProperties
public java.util.Properties getProperties()
- Get the properties from this instance for storing in JNDI
- Specified by:
getProperties
in interface JNDIStorableInterface
- Returns:
- the properties
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Retrive a Reference for this instance to store in JNDI
- Specified by:
getReference
in interface javax.naming.Referenceable
- Returns:
- the built Reference
- Throws:
javax.naming.NamingException
- if error on building Reference
buildFromProperties
public void buildFromProperties(java.util.Properties properties)
populateProperties
public void populateProperties(java.util.Properties props)
Copyright © 2005-2011. All Rights Reserved.