Package org.apache.axis.transport.jms
Class JMSConnectorFactory
- java.lang.Object
-
- org.apache.axis.transport.jms.JMSConnectorFactory
-
public abstract class JMSConnectorFactory extends java.lang.Object
JMSConnectorFactory is a factory class for creating JMSConnectors. It can create both client connectors and server connectors. A server connector is configured to allow asynchronous message receipt, while a client connector is not. JMSConnectorFactory can also be used to select an appropriately configured JMSConnector from an existing pool of connectors.- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Richard Chung (rchung@sonicsoftware.com), Dave Chappell (chappell@sonicsoftware.com), Ray Chun (rchun@sonicsoftware.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description JMSConnectorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JMSConnector
createClientConnector(java.util.HashMap connectorConfig, java.util.HashMap cfConfig, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter)
Static method to create a client connector.static JMSConnector
createServerConnector(java.util.HashMap connectorConfig, java.util.HashMap cfConfig, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter)
Static method to create a server connector.static JMSConnector
matchConnector(java.util.Set connectors, java.util.HashMap connectorProps, java.util.HashMap cfProps, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter)
Performs an initial check on the connector properties, and then defers to the vendor adapter for matching on the vendor-specific connection factory.
-
-
-
Method Detail
-
matchConnector
public static JMSConnector matchConnector(java.util.Set connectors, java.util.HashMap connectorProps, java.util.HashMap cfProps, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter)
Performs an initial check on the connector properties, and then defers to the vendor adapter for matching on the vendor-specific connection factory.- Parameters:
connectors
- the list of potential matchesconnectorProps
- the set of properties to be used for matching the connectorcfProps
- the set of properties to be used for matching the connection factoryusername
- the user requesting the connectorpassword
- the password associated with the requesting useradapter
- the vendor adapter specified in the JMS URL- Returns:
- a JMSConnector that matches the specified properties
-
createServerConnector
public static JMSConnector createServerConnector(java.util.HashMap connectorConfig, java.util.HashMap cfConfig, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter) throws java.lang.Exception
Static method to create a server connector. Server connectors can accept incoming requests.- Parameters:
connectorConfig
-cfConfig
-username
-password
-- Returns:
- Throws:
java.lang.Exception
-
createClientConnector
public static JMSConnector createClientConnector(java.util.HashMap connectorConfig, java.util.HashMap cfConfig, java.lang.String username, java.lang.String password, JMSVendorAdapter adapter) throws java.lang.Exception
Static method to create a client connector. Client connectors cannot accept incoming requests.- Parameters:
connectorConfig
-cfConfig
-username
-password
-- Returns:
- Throws:
java.lang.Exception
-
-