Package org.apache.axis.components.jms
Class JNDIVendorAdapter
- java.lang.Object
-
- org.apache.axis.components.jms.JMSVendorAdapter
-
- org.apache.axis.components.jms.JNDIVendorAdapter
-
public class JNDIVendorAdapter extends JMSVendorAdapter
Uses JNDI to locate ConnectionFactory and Destinations- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Ray Chun (rchun@sonicsoftware.com)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_CONNECTION_FACTORY_JNDI_NAMEstatic java.lang.StringCONNECTION_FACTORY_JNDI_NAMEstatic java.lang.StringCONTEXT_FACTORYstatic java.lang.StringPROVIDER_URL-
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 JNDIVendorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfConfig)Populates the connection factory config table with properties from the JMS URL query stringQueuegetQueue(QueueSession session, java.lang.String name)QueueConnectionFactorygetQueueConnectionFactory(java.util.HashMap cfConfig)TopicgetTopic(TopicSession session, java.lang.String name)TopicConnectionFactorygetTopicConnectionFactory(java.util.HashMap cfConfig)booleanisMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper originalJMSURL, java.util.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 Detail
-
CONTEXT_FACTORY
public static final java.lang.String CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
PROVIDER_URL
public static final java.lang.String PROVIDER_URL
- See Also:
- Constant Field Values
-
_CONNECTION_FACTORY_JNDI_NAME
public static final java.lang.String _CONNECTION_FACTORY_JNDI_NAME
- See Also:
- Constant Field Values
-
CONNECTION_FACTORY_JNDI_NAME
public static final java.lang.String CONNECTION_FACTORY_JNDI_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueueConnectionFactory
public QueueConnectionFactory getQueueConnectionFactory(java.util.HashMap cfConfig) throws java.lang.Exception- Specified by:
getQueueConnectionFactoryin classJMSVendorAdapter- Throws:
java.lang.Exception
-
getTopicConnectionFactory
public TopicConnectionFactory getTopicConnectionFactory(java.util.HashMap cfConfig) throws java.lang.Exception- Specified by:
getTopicConnectionFactoryin classJMSVendorAdapter- Throws:
java.lang.Exception
-
addVendorConnectionFactoryProperties
public void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfConfig)
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, 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 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
public Queue getQueue(QueueSession session, java.lang.String name) throws java.lang.Exception- Overrides:
getQueuein classJMSVendorAdapter- Throws:
java.lang.Exception
-
getTopic
public Topic getTopic(TopicSession session, java.lang.String name) throws java.lang.Exception- Overrides:
getTopicin classJMSVendorAdapter- Throws:
java.lang.Exception
-
-