org.apache.axis2.transport.jms
Class JNDIVendorAdapter

java.lang.Object
  extended byorg.apache.axis2.transport.jms.JMSVendorAdapter
      extended byorg.apache.axis2.transport.jms.JNDIVendorAdapter

public class JNDIVendorAdapter
extends JMSVendorAdapter

Uses JNDI to locate ConnectionFactory and Destinations


Field Summary
static String _CONNECTION_FACTORY_JNDI_NAME
           
static String _DESTINATION
           
static String _PASSWORD
           
static String _USER
           
static String CONNECTION_FACTORY_JNDI_NAME
           
static String CONNECTION_FACTORY_JNDI_VALUE
           
static String CONTEXT_FACTORY
           
static String DESTINATION
           
static String PASSWORD
           
static String PROVIDER_URL
           
static String USER
           
 
Fields inherited from class org.apache.axis2.transport.jms.JMSVendorAdapter
CONNECT_ACTION, ON_EXCEPTION_ACTION, RECEIVE_ACTION, SEND_ACTION, SUBSCRIBE_ACTION
 
Constructor Summary
JNDIVendorAdapter()
           
 
Method Summary
 void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfConfig)
          Populates the connection factory config table with properties from the JMS URL query string
 javax.jms.Queue getQueue(javax.jms.QueueSession session, String name)
           
 javax.jms.QueueConnectionFactory getQueueConnectionFactory(HashMap cfConfig)
           
 javax.jms.Topic getTopic(javax.jms.TopicSession session, String name)
           
 javax.jms.TopicConnectionFactory getTopicConnectionFactory(HashMap cfConfig)
           
 boolean isMatchingConnectionFactory(javax.jms.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.axis2.transport.jms.JMSVendorAdapter
getJMSConnectionFactoryProperties, getJMSConnectorProperties, getVendorId, isRecoverable, setProperties, setupApplicationProperties, setupMessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_FACTORY

public static final String CONTEXT_FACTORY
See Also:
Constant Field Values

PROVIDER_URL

public static final String PROVIDER_URL
See Also:
Constant Field Values

_CONNECTION_FACTORY_JNDI_NAME

public static final String _CONNECTION_FACTORY_JNDI_NAME
See Also:
Constant Field Values

CONNECTION_FACTORY_JNDI_VALUE

public static final String CONNECTION_FACTORY_JNDI_VALUE
See Also:
Constant Field Values

CONNECTION_FACTORY_JNDI_NAME

public static final String CONNECTION_FACTORY_JNDI_NAME
See Also:
Constant Field Values

_DESTINATION

public static final String _DESTINATION
See Also:
Constant Field Values

DESTINATION

public static final String DESTINATION
See Also:
Constant Field Values

_USER

public static final String _USER
See Also:
Constant Field Values

_PASSWORD

public static final String _PASSWORD
See Also:
Constant Field Values

USER

public static final String USER
See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values
Constructor Detail

JNDIVendorAdapter

public JNDIVendorAdapter()
Method Detail

addVendorConnectionFactoryProperties

public void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl,
                                                 HashMap cfConfig)
Populates the connection factory config table with properties from the JMS URL query string

Specified by:
addVendorConnectionFactoryProperties in class JMSVendorAdapter
Parameters:
jmsurl - The target endpoint address of the Axis call
cfConfig - The set of properties necessary to create/configure the connection factory

getQueue

public javax.jms.Queue getQueue(javax.jms.QueueSession session,
                                String name)
                         throws Exception
Overrides:
getQueue in class JMSVendorAdapter
Throws:
Exception

getQueueConnectionFactory

public javax.jms.QueueConnectionFactory getQueueConnectionFactory(HashMap cfConfig)
                                                           throws Exception
Specified by:
getQueueConnectionFactory in class JMSVendorAdapter
Throws:
Exception

getTopic

public javax.jms.Topic getTopic(javax.jms.TopicSession session,
                                String name)
                         throws Exception
Overrides:
getTopic in class JMSVendorAdapter
Throws:
Exception

getTopicConnectionFactory

public javax.jms.TopicConnectionFactory getTopicConnectionFactory(HashMap cfConfig)
                                                           throws Exception
Specified by:
getTopicConnectionFactory in class JMSVendorAdapter
Throws:
Exception

isMatchingConnectionFactory

public boolean isMatchingConnectionFactory(javax.jms.ConnectionFactory cf,
                                           JMSURLHelper originalJMSURL,
                                           HashMap cfProps)
Check that the attributes of the candidate connection factory match the requested connection factory properties.

Specified by:
isMatchingConnectionFactory in class JMSVendorAdapter
Parameters:
cf - the candidate connection factory
originalJMSURL - the URL which was used to create the connection factory
cfProps - the set of properties that should be used to determine the match
Returns:
true or false to indicate whether a match has been found