|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.objectpools.PooledClientGatewayAccessHelper
public class PooledClientGatewayAccessHelper
This class encapsulates access to a configured Keyed Pool of org.osesb.msgrouting.ClientGateway(s).
ClientGateway(s) facilitate communication with broker end points such as JMS Queues and web services. ClientGateway is used to hide messaging infrastructure from client applications. Client applications are not aware of target destinations, the message transport, or how a request is fulfilled. Initiating applications merely send a message, and possibly, receive a response.
| 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 | |
|---|---|
PooledClientGatewayAccessHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
getPooledClientGateway(java.lang.String poolKey)
Gets a pooled ClientGateway from the configured keyed pool of ClientGateway(s) using a poolKey. |
static void |
main(java.lang.String[] args)
Main method for testing and sandboxing. |
static void |
returnPooledClientGateway(java.lang.String poolKey,
java.lang.Object clientGateway)
Returns a ClientGateway to the configured keyed pool of ClientGateway(s). |
| 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 PooledClientGatewayAccessHelper()
| Method Detail |
|---|
public static java.lang.Object getPooledClientGateway(java.lang.String poolKey)
throws java.lang.Exception
poolKey - The key to the target ClientGateway in the
configured heterogeneous pool of ClientGateway(s).
java.lang.Exception - if a ClientGateway cannot be obtained from the pool.
public static void returnPooledClientGateway(java.lang.String poolKey,
java.lang.Object clientGateway)
poolKey - The key to the target ClientGateway in the
configured heterogeneous pool of ClientGateway(s).clientGateway - The ClientGateway to return.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 | ||||||||