|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.objectpools.PooledJMSClientAccessHelper
public class PooledJMSClientAccessHelper
This class encapsulates access to a configured Keyed Pool of JMS clients, which is managed by JMSClientKeyedPoolFactory. JMS client pools can include the following classes from the org.osesb.connectors.jms package.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
The logging implementation for this class. |
protected static java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
PooledJMSClientAccessHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
getPooledJMSClient(javax.jms.Destination jmsDestination)
Gets a pooled JMS client from the configured keyed pool of JMS clients using a JMS Destination. |
static java.lang.Object |
getPooledJMSClient(java.lang.String poolKey)
Gets a pooled JMS client from the configured keyed pool of JMS clients using a poolKey. |
static void |
main(java.lang.String[] args)
Main method for testing and sandboxing. |
static void |
returnPooledJMSClient(java.lang.String poolKey,
java.lang.Object jmsClient)
Returns a JMS client object to the configured keyed pool of JMS clients. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String thisClassName
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public PooledJMSClientAccessHelper()
| Method Detail |
|---|
public static java.lang.Object getPooledJMSClient(java.lang.String poolKey)
throws java.lang.Exception
poolKey - The key to the target JMS client in the
configured heterogeneous pool of JMS clients.
java.lang.Exception - if a JMS client cannot be obtained from the pool.
public static java.lang.Object getPooledJMSClient(javax.jms.Destination jmsDestination)
throws java.lang.Exception
<queue> and
<topic> properties of a JMS client pool entry. Once a
JNDI lookup is performed, the pool entry is modified (in memory)
to include a 'destinationName' property, so that subsequent
invocations of this method do not repeatedly perform JNDI lookups
for a given Destination.
jmsDestination - The JMS Destination for the target JMS client in the
configured heterogeneous pool of JMS clients.
java.lang.Exception - if a JMS client cannot be obtained from the pool.
public static void returnPooledJMSClient(java.lang.String poolKey,
java.lang.Object jmsClient)
poolKey - The key to the target JMS client in the
configured heterogeneous pool of JMS clients.jmsClient - The JMS client to return. JMS clients extend
org.osesb.connectors.jms.JMSProducerBase or org.osesb.connectors.jms.JMSConsumerBase.public static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||