org.apache.axis.components.jms

Class SonicMQVendorAdapter


public class SonicMQVendorAdapter
extends BeanVendorAdapter

Defines SonicMQ specific constants for connnection factory creation. Overrides methods in BeanVendorAdapter to fill in MQ classnames
Authors:
Jaime Meritt (jmeritt@sonicsoftware.com)
Ray Chun (rchun@sonicsoftware.com)

Field Summary

static String
BROKER_URL
SonicConnectionFactory parameter valid for either domain.
static String
CONNECTION_URLS
SonicConnectionFactory parameter valid for either domain.
static String
CONNECT_ID
SonicConnectionFactory parameter valid for either domain.
static String
DEFAULT_PASSWORD
SonicConnectionFactory parameter valid for either domain.
static String
DEFAULT_USERNAME
SonicConnectionFactory parameter valid for either domains.
static String
LOAD_BALANCING
SonicConnectionFactory parameter valid for either domain.
static String
MONITOR_INTERVAL
SonicConnectionFactory parameter valid for either domain.
static String
PERSISTENT_DELIVERY
SonicConnectionFactory parameter valid for either domain.
static String
PING_INTERVAL
SonicConnectionFactory parameter valid for either domain.
static String
PREFETCH_COUNT
SonicConnectionFactory parameter valid for the PTP domain.
static String
PREFETCH_THRESHOLD
SonicConnectionFactory parameter valid for the PTP domain.
static String
RECONNECT_INTERVAL
SonicConnectionFactory parameter valid for either domain.
static String
RECONNECT_TIMEOUT
SonicConnectionFactory parameter valid for either domain.
static String
SELECTOR_AT_BROKER
SonicConnectionFactory parameter valid for the PubSub domain.
static String
SEQUENTIAL
SonicConnectionFactory parameter valid for either domain.

Fields inherited from class org.apache.axis.components.jms.BeanVendorAdapter

CONNECTION_FACTORY_CLASS

Fields inherited from class org.apache.axis.components.jms.JMSVendorAdapter

CONNECT_ACTION, ON_EXCEPTION_ACTION, RECEIVE_ACTION, SEND_ACTION, SUBSCRIBE_ACTION

Method Summary

void
addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps)
Extract Sonic-specific properties from the JMS URL
QueueConnectionFactory
getQueueConnectionFactory(HashMap cfConfig)
TopicConnectionFactory
getTopicConnectionFactory(HashMap cfConfig)
boolean
isConnectionDropped(JMSException jmse)
boolean
isMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps)
Check that the attributes of the candidate connection factory match the requested connection factory properties.
boolean
isRecoverable(Throwable thrown, int action)

Methods inherited from class org.apache.axis.components.jms.BeanVendorAdapter

getQueueConnectionFactory, getTopicConnectionFactory

Methods inherited from class org.apache.axis.components.jms.JMSVendorAdapter

addVendorConnectionFactoryProperties, getJMSConnectionFactoryProperties, getJMSConnectorProperties, getQueue, getQueueConnectionFactory, getTopic, getTopicConnectionFactory, getVendorId, isMatchingConnectionFactory, isRecoverable, setProperties, setupApplicationProperties, setupMessageContext

Field Details

BROKER_URL

public static final String BROKER_URL
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory. This is a required property. The value must be a java.lang.String See the SonicMQ documentation for information on this property

CONNECTION_URLS

public static final String CONNECTION_URLS
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.String See the SonicMQ documentation for information on this property

CONNECT_ID

public static final String CONNECT_ID
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.String See the SonicMQ documentation for information on this property

DEFAULT_PASSWORD

public static final String DEFAULT_PASSWORD
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory This is a required property for secure brokers. The value must be a java.lang.String See the SonicMQ documentation for information on this property

DEFAULT_USERNAME

public static final String DEFAULT_USERNAME
SonicConnectionFactory parameter valid for either domains. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory This is a required property for secure brokers. The value must be a java.lang.String See the SonicMQ documentation for information on this property

LOAD_BALANCING

public static final String LOAD_BALANCING
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Boolean See the SonicMQ documentation for information on this property

MONITOR_INTERVAL

public static final String MONITOR_INTERVAL
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Long See the SonicMQ documentation for information on this property

PERSISTENT_DELIVERY

public static final String PERSISTENT_DELIVERY
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Boolean See the SonicMQ documentation for information on this property

PING_INTERVAL

public static final String PING_INTERVAL
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Long See the SonicMQ documentation for information on this property

PREFETCH_COUNT

public static final String PREFETCH_COUNT
SonicConnectionFactory parameter valid for the PTP domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Integer See the SonicMQ documentation for information on this property

PREFETCH_THRESHOLD

public static final String PREFETCH_THRESHOLD
SonicConnectionFactory parameter valid for the PTP domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Integer See the SonicMQ documentation for information on this property

RECONNECT_INTERVAL

public static final String RECONNECT_INTERVAL
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Integer See the SonicMQ documentation for information on this property

RECONNECT_TIMEOUT

public static final String RECONNECT_TIMEOUT
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Integer See the SonicMQ documentation for information on this property

SELECTOR_AT_BROKER

public static final String SELECTOR_AT_BROKER
SonicConnectionFactory parameter valid for the PubSub domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Boolean See the SonicMQ documentation for information on this property

SEQUENTIAL

public static final String SEQUENTIAL
SonicConnectionFactory parameter valid for either domain. This should be used as a key in the environment map passed into calls to createConnector in JMSConnectorFactory The value must be a java.lang.Boolean See the SonicMQ documentation for information on this property

Method Details

addVendorConnectionFactoryProperties

public void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl,
                                                 HashMap cfProps)
Extract Sonic-specific properties from the JMS URL
Overrides:
addVendorConnectionFactoryProperties in interface JMSVendorAdapter
Parameters:
jmsurl - The JMS URL representing the target endpoint address
cfProps - The set of connection factory configuration properties

getQueueConnectionFactory

public QueueConnectionFactory getQueueConnectionFactory(HashMap cfConfig)
            throws Exception
Overrides:
getQueueConnectionFactory in interface BeanVendorAdapter

getTopicConnectionFactory

public TopicConnectionFactory getTopicConnectionFactory(HashMap cfConfig)
            throws Exception
Overrides:
getTopicConnectionFactory in interface BeanVendorAdapter

isConnectionDropped

public boolean isConnectionDropped(JMSException jmse)

isMatchingConnectionFactory

public boolean isMatchingConnectionFactory(javax.jms.ConnectionFactory cf,
                                           JMSURLHelper jmsurl,
                                           HashMap cfProps)
Check that the attributes of the candidate connection factory match the requested connection factory properties.
Overrides:
isMatchingConnectionFactory in interface JMSVendorAdapter
Parameters:
cf - the candidate connection factory
jmsurl - the JMS URL associated with the candidate connection factory
cfProps - the properties associated with the current request
Returns:
true or false

isRecoverable

public boolean isRecoverable(Throwable thrown,
                             int action)
Overrides:
isRecoverable in interface JMSVendorAdapter

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