@Deprecated
public class JMSProducerPool
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
POOL_INCR_SIZE
Deprecated.
The pool increment size.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeAll()
Deprecated.
Releases resources from all pools.
|
void |
freeJMSProducer(JMSProducer producer)
Deprecated.
|
static JMSProducerPool |
getInstance(java.lang.String connectionFactoryName,
java.util.Properties env)
Deprecated.
|
JMSProducer |
getJMSProducer(java.lang.String destinationName)
Deprecated.
|
JMSProducer |
getJMSProducer(java.lang.String destinationName,
java.lang.String providerUser,
java.lang.String providerPassword)
Deprecated.
|
public static int POOL_INCR_SIZE
public static void closeAll()
public static JMSProducerPool getInstance(java.lang.String connectionFactoryName, java.util.Properties env)
connectionFactoryName - the JNDI name of the ConnectionFactory.env - The env that would be used to create the IntialContext.public JMSProducer getJMSProducer(java.lang.String destinationName) throws MXException
destinationName - the JNDI name of the Destination.MXExceptionpublic JMSProducer getJMSProducer(java.lang.String destinationName, java.lang.String providerUser, java.lang.String providerPassword) throws MXException
destinationName - the JNDI name of the Destination.MXExceptionpublic void freeJMSProducer(JMSProducer producer)
producer - release the JMSProducer back to the pool.