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
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
FieldsModifier and TypeFieldDescriptionstatic final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domains.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for the PTP domain.static final StringSonicConnectionFactoryparameter valid for the PTP domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for either domain.static final StringSonicConnectionFactoryparameter valid for the PubSub domain.static final StringSonicConnectionFactoryparameter valid for either domain.Fields inherited from class org.apache.axis.components.jms.BeanVendorAdapter
CONNECTION_FACTORY_CLASSFields inherited from class org.apache.axis.components.jms.JMSVendorAdapter
CONNECT_ACTION, ON_EXCEPTION_ACTION, RECEIVE_ACTION, SEND_ACTION, SUBSCRIBE_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps) Extract Sonic-specific properties from the JMS URLQueueConnectionFactorygetQueueConnectionFactory(HashMap cfConfig) TopicConnectionFactorygetTopicConnectionFactory(HashMap cfConfig) booleanisConnectionDropped(JMSException jmse) booleanisMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps) Check that the attributes of the candidate connection factory match the requested connection factory properties.booleanisRecoverable(Throwable thrown, int action) Methods inherited from class org.apache.axis.components.jms.JMSVendorAdapter
getJMSConnectionFactoryProperties, getJMSConnectorProperties, getQueue, getTopic, getVendorId, setProperties, setupApplicationProperties, setupMessageContext
-
Field Details
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
-
Constructor Details
-
SonicMQVendorAdapter
public SonicMQVendorAdapter()
-
-
Method Details
-
getQueueConnectionFactory
- Overrides:
getQueueConnectionFactoryin classBeanVendorAdapter- Throws:
Exception
-
getTopicConnectionFactory
- Overrides:
getTopicConnectionFactoryin classBeanVendorAdapter- Throws:
Exception
-
addVendorConnectionFactoryProperties
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, 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
- Overrides:
isRecoverablein classJMSVendorAdapter
-
isConnectionDropped
public boolean isConnectionDropped(JMSException jmse)
-