Package org.apache.axis.transport.jms
Class JMSConnectorManager
java.lang.Object
org.apache.axis.transport.jms.JMSConnectorManager
JMSConnectorManager manages a pool of connectors and works with the
vendor adapters to support the reuse of JMS connections.
- Author:
- Ray Chun (rchun@sonicsoftware.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
A simple non-blocking pool impl for objects that can be shared. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a JMSConnector to the appropriate vendor poolgetConnector
(HashMap connectorProperties, HashMap connectionFactoryProperties, String username, String password, JMSVendorAdapter vendorAdapter) Retrieves a JMSConnector that satisfies the provided connector criteriastatic JMSConnectorManager
getVendorPool
(String vendorId) Returns the pool of JMSConnectors for a particular vendorvoid
release
(JMSConnector connector) Performs a non-exclusive checkin of the JMSConnectorvoid
Removes a JMSConnector from the appropriate vendor poolvoid
reserve
(JMSConnector connector) Performs a non-exclusive checkout of the JMSConnector
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Method Details
-
getInstance
-
getVendorPool
Returns the pool of JMSConnectors for a particular vendor -
getConnector
public JMSConnector getConnector(HashMap connectorProperties, HashMap connectionFactoryProperties, String username, String password, JMSVendorAdapter vendorAdapter) throws AxisFault Retrieves a JMSConnector that satisfies the provided connector criteria- Throws:
AxisFault
-
addConnectorToPool
Adds a JMSConnector to the appropriate vendor pool -
removeConnectorFromPool
Removes a JMSConnector from the appropriate vendor pool -
reserve
Performs a non-exclusive checkout of the JMSConnector- Throws:
Exception
-
release
Performs a non-exclusive checkin of the JMSConnector
-