org.apache.axis.transport.jms

Class 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.

Authors:
Jaime Meritt (jmeritt@sonicsoftware.com)
Richard Chung (rchung@sonicsoftware.com)
Dave Chappell (chappell@sonicsoftware.com)
Ray Chun (rchun@sonicsoftware.com)

Field Summary

protected static Log
log

Method Summary

static JMSConnector
createClientConnector(HashMap connectorConfig, HashMap cfConfig, String username, String password, JMSVendorAdapter adapter)
Static method to create a client connector.
static JMSConnector
createServerConnector(HashMap connectorConfig, HashMap cfConfig, String username, String password, JMSVendorAdapter adapter)
Static method to create a server connector.
static JMSConnector
matchConnector(java.util.Set connectors, HashMap connectorProps, HashMap cfProps, String username, 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.

Field Details

log

protected static Log log

Method Details

createClientConnector

public static JMSConnector createClientConnector(HashMap connectorConfig,
                                                 HashMap cfConfig,
                                                 String username,
                                                 String password,
                                                 JMSVendorAdapter adapter)
            throws Exception
Static method to create a client connector. Client connectors cannot accept incoming requests.

Parameters:
connectorConfig -
cfConfig -
username -
password -

Returns:


createServerConnector

public static JMSConnector createServerConnector(HashMap connectorConfig,
                                                 HashMap cfConfig,
                                                 String username,
                                                 String password,
                                                 JMSVendorAdapter adapter)
            throws Exception
Static method to create a server connector. Server connectors can accept incoming requests.

Parameters:
connectorConfig -
cfConfig -
username -
password -

Returns:


matchConnector

public static JMSConnector matchConnector(java.util.Set connectors,
                                          HashMap connectorProps,
                                          HashMap cfProps,
                                          String username,
                                          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 matches
connectorProps - the set of properties to be used for matching the connector
cfProps - the set of properties to be used for matching the connection factory
username - the user requesting the connector
password - the password associated with the requesting user
adapter - the vendor adapter specified in the JMS URL

Returns:
a JMSConnector that matches the specified properties


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.