Package org.apache.axis.components.jms
Class JNDIVendorAdapter
java.lang.Object
org.apache.axis.components.jms.JMSVendorAdapter
org.apache.axis.components.jms.JNDIVendorAdapter
Uses JNDI to locate ConnectionFactory and Destinations
- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Ray Chun (rchun@sonicsoftware.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 cfConfig) Populates the connection factory config table with properties from the JMS URL query stringQueueQueueConnectionFactorygetQueueConnectionFactory(HashMap cfConfig) TopicTopicConnectionFactorygetTopicConnectionFactory(HashMap cfConfig) booleanisMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper originalJMSURL, HashMap cfProps) Check that the attributes of the candidate connection factory match the requested connection factory properties.Methods inherited from class org.apache.axis.components.jms.JMSVendorAdapter
getJMSConnectionFactoryProperties, getJMSConnectorProperties, getVendorId, isRecoverable, setProperties, setupApplicationProperties, setupMessageContext
-
Field Details
-
CONTEXT_FACTORY
- See Also:
-
PROVIDER_URL
- See Also:
-
_CONNECTION_FACTORY_JNDI_NAME
- See Also:
-
CONNECTION_FACTORY_JNDI_NAME
- See Also:
-
-
Constructor Details
-
JNDIVendorAdapter
public JNDIVendorAdapter()
-
-
Method Details
-
getQueueConnectionFactory
- Specified by:
getQueueConnectionFactoryin classJMSVendorAdapter- Throws:
Exception
-
getTopicConnectionFactory
- Specified by:
getTopicConnectionFactoryin classJMSVendorAdapter- Throws:
Exception
-
addVendorConnectionFactoryProperties
Populates the connection factory config table with properties from the JMS URL query string- Specified by:
addVendorConnectionFactoryPropertiesin classJMSVendorAdapter- Parameters:
jmsurl- The target endpoint address of the Axis callcfConfig- The set of properties necessary to create/configure the connection factory
-
isMatchingConnectionFactory
public boolean isMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper originalJMSURL, 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 factoryoriginalJMSURL- the URL which was used to create the connection factorycfProps- the set of properties that should be used to determine the match- Returns:
- true or false to indicate whether a match has been found
-
getQueue
- Overrides:
getQueuein classJMSVendorAdapter- Throws:
Exception
-
getTopic
- Overrides:
getTopicin classJMSVendorAdapter- Throws:
Exception
-