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 String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domains.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for the PTP domain.static final String
SonicConnectionFactory
parameter valid for the PTP domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for either domain.static final String
SonicConnectionFactory
parameter valid for the PubSub domain.static final String
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addVendorConnectionFactoryProperties
(JMSURLHelper jmsurl, HashMap cfProps) Extract Sonic-specific properties from the JMS URLQueueConnectionFactory
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.JMSVendorAdapter
getJMSConnectionFactoryProperties, getJMSConnectorProperties, getQueue, getTopic, getVendorId, setProperties, setupApplicationProperties, setupMessageContext
-
Field Details
-
BROKER_URL
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
. This is a required property. The value must be ajava.lang.String
See the SonicMQ documentation for information on this property- See Also:
-
DEFAULT_USERNAME
SonicConnectionFactory
parameter valid for either domains. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
This is a required property for secure brokers. The value must be ajava.lang.String
See the SonicMQ documentation for information on this property- See Also:
-
DEFAULT_PASSWORD
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
This is a required property for secure brokers. The value must be ajava.lang.String
See the SonicMQ documentation for information on this property- See Also:
-
PING_INTERVAL
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Long
See the SonicMQ documentation for information on this property- See Also:
-
RECONNECT_INTERVAL
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Integer
See the SonicMQ documentation for information on this property- See Also:
-
RECONNECT_TIMEOUT
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Integer
See the SonicMQ documentation for information on this property- See Also:
-
CONNECT_ID
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.String
See the SonicMQ documentation for information on this property- See Also:
-
CONNECTION_URLS
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.String
See the SonicMQ documentation for information on this property- See Also:
-
LOAD_BALANCING
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Boolean
See the SonicMQ documentation for information on this property- See Also:
-
MONITOR_INTERVAL
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Long
See the SonicMQ documentation for information on this property- See Also:
-
PERSISTENT_DELIVERY
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Boolean
See the SonicMQ documentation for information on this property- See Also:
-
SEQUENTIAL
SonicConnectionFactory
parameter valid for either domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Boolean
See the SonicMQ documentation for information on this property- See Also:
-
PREFETCH_COUNT
SonicConnectionFactory
parameter valid for the PTP domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Integer
See the SonicMQ documentation for information on this property- See Also:
-
PREFETCH_THRESHOLD
SonicConnectionFactory
parameter valid for the PTP domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Integer
See the SonicMQ documentation for information on this property- See Also:
-
SELECTOR_AT_BROKER
SonicConnectionFactory
parameter valid for the PubSub domain. This should be used as a key in the environment map passed into calls tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Boolean
See the SonicMQ documentation for information on this property- See Also:
-
-
Constructor Details
-
SonicMQVendorAdapter
public SonicMQVendorAdapter()
-
-
Method Details
-
getQueueConnectionFactory
- Overrides:
getQueueConnectionFactory
in classBeanVendorAdapter
- Throws:
Exception
-
getTopicConnectionFactory
- Overrides:
getTopicConnectionFactory
in classBeanVendorAdapter
- Throws:
Exception
-
addVendorConnectionFactoryProperties
Extract Sonic-specific properties from the JMS URL- Specified by:
addVendorConnectionFactoryProperties
in 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:
isMatchingConnectionFactory
in 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:
isRecoverable
in classJMSVendorAdapter
-
isConnectionDropped
public boolean isConnectionDropped(JMSException jmse)
-