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.String
BROKER_URL
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
CONNECT_ID
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
CONNECTION_URLS
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
DEFAULT_PASSWORD
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
DEFAULT_USERNAME
SonicConnectionFactory
parameter valid for either domains.static java.lang.String
LOAD_BALANCING
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
MONITOR_INTERVAL
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
PERSISTENT_DELIVERY
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
PING_INTERVAL
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
PREFETCH_COUNT
SonicConnectionFactory
parameter valid for the PTP domain.static java.lang.String
PREFETCH_THRESHOLD
SonicConnectionFactory
parameter valid for the PTP domain.static java.lang.String
RECONNECT_INTERVAL
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
RECONNECT_TIMEOUT
SonicConnectionFactory
parameter valid for either domain.static java.lang.String
SELECTOR_AT_BROKER
SonicConnectionFactory
parameter valid for the PubSub domain.static java.lang.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
-
-
Constructor Summary
Constructors Constructor Description SonicMQVendorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfProps)
Extract Sonic-specific properties from the JMS URLQueueConnectionFactory
getQueueConnectionFactory(java.util.HashMap cfConfig)
TopicConnectionFactory
getTopicConnectionFactory(java.util.HashMap cfConfig)
boolean
isConnectionDropped(JMSException jmse)
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.boolean
isRecoverable(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
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:
- Constant Field Values
-
DEFAULT_USERNAME
public static final java.lang.String 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:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final java.lang.String 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:
- Constant Field Values
-
PING_INTERVAL
public static final java.lang.String 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:
- Constant Field Values
-
RECONNECT_INTERVAL
public static final java.lang.String 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:
- Constant Field Values
-
RECONNECT_TIMEOUT
public static final java.lang.String 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:
- Constant Field Values
-
CONNECT_ID
public static final java.lang.String 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:
- Constant Field Values
-
CONNECTION_URLS
public static final java.lang.String 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:
- Constant Field Values
-
LOAD_BALANCING
public static final java.lang.String 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:
- Constant Field Values
-
MONITOR_INTERVAL
public static final java.lang.String 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:
- Constant Field Values
-
PERSISTENT_DELIVERY
public static final java.lang.String 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:
- Constant Field Values
-
SEQUENTIAL
public static final java.lang.String 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:
- Constant Field Values
-
PREFETCH_COUNT
public static final java.lang.String 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:
- Constant Field Values
-
PREFETCH_THRESHOLD
public static final java.lang.String 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:
- Constant Field Values
-
SELECTOR_AT_BROKER
public static final java.lang.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 tocreateConnector
inJMSConnectorFactory
The value must be ajava.lang.Boolean
See 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:
getQueueConnectionFactory
in classBeanVendorAdapter
- Throws:
java.lang.Exception
-
getTopicConnectionFactory
public TopicConnectionFactory getTopicConnectionFactory(java.util.HashMap cfConfig) throws java.lang.Exception
- Overrides:
getTopicConnectionFactory
in 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:
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, java.util.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
public boolean isRecoverable(java.lang.Throwable thrown, int action)
- Overrides:
isRecoverable
in classJMSVendorAdapter
-
isConnectionDropped
public boolean isConnectionDropped(JMSException jmse)
-
-