org.osesb.objectpools
Class PooledJAXRPCClientAccessHelper

java.lang.Object
  extended by org.osesb.objectpools.PooledJAXRPCClientAccessHelper

public class PooledJAXRPCClientAccessHelper
extends java.lang.Object

This class encapsulates access to a configured Keyed Pool of jax-rpc clients, which is managed by JAXRPCClientKeyedPoolFactory. jax-rpc clients are descendants of org.osesb.connectors.jaxrpc.JAXRPCDynamicClient.

Since:
Version .9

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
PooledJAXRPCClientAccessHelper()
           
 
Method Summary
static java.lang.Object getPooledJAXRPCClient(java.lang.String poolKey)
          Gets a pooled jax-rpc client object from the configured pool of jax-rpc clients.
static void main(java.lang.String[] args)
          Main method for testing and sandboxing.
static void returnPooledJAXRPCClient(java.lang.String poolKey, java.lang.Object jaxrpcClient)
          Returns a pooled jax-rpc client object to the configured pool of jax-rpc clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisClassName

protected static java.lang.String thisClassName
The full name of this class.


log

protected static org.apache.commons.logging.Log log
The logging implementation for this class.

Constructor Detail

PooledJAXRPCClientAccessHelper

public PooledJAXRPCClientAccessHelper()
Method Detail

getPooledJAXRPCClient

public static java.lang.Object getPooledJAXRPCClient(java.lang.String poolKey)
                                              throws java.lang.Exception
Gets a pooled jax-rpc client object from the configured pool of jax-rpc clients.

Parameters:
poolKey - The key to the target jax-rpc client in the heterogeneous pool of jax-rpc clients.
Returns:
a jax-rpc client Object.
Throws:
java.lang.Exception - if a jax-rpc client cannot be obtained from the pool.

returnPooledJAXRPCClient

public static void returnPooledJAXRPCClient(java.lang.String poolKey,
                                            java.lang.Object jaxrpcClient)
Returns a pooled jax-rpc client object to the configured pool of jax-rpc clients.

Parameters:
poolKey - The key to the target jax-rpc client in the heterogeneous pool of jax-rpc clients.
jaxrpcClient - The jax-rpc client Object to return. to the pool.

main

public static void main(java.lang.String[] args)
Main method for testing and sandboxing.

Parameters:
args -