Package org.apache.axis.components.jms
Class SonicMQVendorAdapter
- java.lang.Object
-
- org.apache.axis.components.jms.JMSVendorAdapter
-
- org.apache.axis.components.jms.BeanVendorAdapter
-
- org.apache.axis.components.jms.SonicMQVendorAdapter
-
public class SonicMQVendorAdapter extends BeanVendorAdapter
Defines SonicMQ specific constants for connnection factory creation. Overrides methods in BeanVendorAdapter to fill in MQ classnames- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Ray Chun (rchun@sonicsoftware.com)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBROKER_URLSonicConnectionFactoryparameter valid for either domain.static java.lang.StringCONNECT_IDSonicConnectionFactoryparameter valid for either domain.static java.lang.StringCONNECTION_URLSSonicConnectionFactoryparameter valid for either domain.static java.lang.StringDEFAULT_PASSWORDSonicConnectionFactoryparameter valid for either domain.static java.lang.StringDEFAULT_USERNAMESonicConnectionFactoryparameter valid for either domains.static java.lang.StringLOAD_BALANCINGSonicConnectionFactoryparameter valid for either domain.static java.lang.StringMONITOR_INTERVALSonicConnectionFactoryparameter valid for either domain.static java.lang.StringPERSISTENT_DELIVERYSonicConnectionFactoryparameter valid for either domain.static java.lang.StringPING_INTERVALSonicConnectionFactoryparameter valid for either domain.static java.lang.StringPREFETCH_COUNTSonicConnectionFactoryparameter valid for the PTP domain.static java.lang.StringPREFETCH_THRESHOLDSonicConnectionFactoryparameter valid for the PTP domain.static java.lang.StringRECONNECT_INTERVALSonicConnectionFactoryparameter valid for either domain.static java.lang.StringRECONNECT_TIMEOUTSonicConnectionFactoryparameter valid for either domain.static java.lang.StringSELECTOR_AT_BROKERSonicConnectionFactoryparameter valid for the PubSub domain.static java.lang.StringSEQUENTIALSonicConnectionFactoryparameter 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
-
-
Constructor Summary
Constructors Constructor Description SonicMQVendorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfProps)Extract Sonic-specific properties from the JMS URLQueueConnectionFactorygetQueueConnectionFactory(java.util.HashMap cfConfig)TopicConnectionFactorygetTopicConnectionFactory(java.util.HashMap cfConfig)booleanisConnectionDropped(JMSException jmse)booleanisMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, java.util.HashMap cfProps)Check that the attributes of the candidate connection factory match the requested connection factory properties.booleanisRecoverable(java.lang.Throwable thrown, int action)-
Methods inherited from class org.apache.axis.components.jms.JMSVendorAdapter
getJMSConnectionFactoryProperties, getJMSConnectorProperties, getQueue, getTopic, getVendorId, setProperties, setupApplicationProperties, setupMessageContext
-
-
-
-
Field Detail
-
BROKER_URL
public static final java.lang.String BROKER_URL
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactory. This is a required property. The value must be ajava.lang.StringSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
DEFAULT_USERNAME
public static final java.lang.String DEFAULT_USERNAME
SonicConnectionFactoryparameter valid for either domains. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThis is a required property for secure brokers. The value must be ajava.lang.StringSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final java.lang.String DEFAULT_PASSWORD
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThis is a required property for secure brokers. The value must be ajava.lang.StringSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
PING_INTERVAL
public static final java.lang.String PING_INTERVAL
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.LongSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
RECONNECT_INTERVAL
public static final java.lang.String RECONNECT_INTERVAL
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.IntegerSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
RECONNECT_TIMEOUT
public static final java.lang.String RECONNECT_TIMEOUT
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.IntegerSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
CONNECT_ID
public static final java.lang.String CONNECT_ID
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.StringSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
CONNECTION_URLS
public static final java.lang.String CONNECTION_URLS
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.StringSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
LOAD_BALANCING
public static final java.lang.String LOAD_BALANCING
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.BooleanSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
MONITOR_INTERVAL
public static final java.lang.String MONITOR_INTERVAL
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.LongSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
PERSISTENT_DELIVERY
public static final java.lang.String PERSISTENT_DELIVERY
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.BooleanSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
SEQUENTIAL
public static final java.lang.String SEQUENTIAL
SonicConnectionFactoryparameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.BooleanSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
PREFETCH_COUNT
public static final java.lang.String PREFETCH_COUNT
SonicConnectionFactoryparameter valid for the PTP domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.IntegerSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
PREFETCH_THRESHOLD
public static final java.lang.String PREFETCH_THRESHOLD
SonicConnectionFactoryparameter valid for the PTP domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.IntegerSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
SELECTOR_AT_BROKER
public static final java.lang.String SELECTOR_AT_BROKER
SonicConnectionFactoryparameter valid for the PubSub domain. This should be used as a key in the environment map passed into calls tocreateConnectorinJMSConnectorFactoryThe value must be ajava.lang.BooleanSee the SonicMQ documentation for information on this property- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueueConnectionFactory
public QueueConnectionFactory getQueueConnectionFactory(java.util.HashMap cfConfig) throws java.lang.Exception- Overrides:
getQueueConnectionFactoryin classBeanVendorAdapter- Throws:
java.lang.Exception
-
getTopicConnectionFactory
public TopicConnectionFactory getTopicConnectionFactory(java.util.HashMap cfConfig) throws java.lang.Exception- Overrides:
getTopicConnectionFactoryin classBeanVendorAdapter- Throws:
java.lang.Exception
-
addVendorConnectionFactoryProperties
public void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfProps)
Extract Sonic-specific properties from the JMS URL- Specified by:
addVendorConnectionFactoryPropertiesin classJMSVendorAdapter- Parameters:
jmsurl- The JMS URL representing the target endpoint addresscfProps- The set of connection factory configuration properties
-
isMatchingConnectionFactory
public boolean isMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, java.util.HashMap cfProps)Check that the attributes of the candidate connection factory match the requested connection factory properties.- Specified by:
isMatchingConnectionFactoryin classJMSVendorAdapter- Parameters:
cf- the candidate connection factoryjmsurl- the JMS URL associated with the candidate connection factorycfProps- the properties associated with the current request- Returns:
- true or false
-
isRecoverable
public boolean isRecoverable(java.lang.Throwable thrown, int action)- Overrides:
isRecoverablein classJMSVendorAdapter
-
isConnectionDropped
public boolean isConnectionDropped(JMSException jmse)
-
-