org.apache.axis.components.jms

Class JNDIVendorAdapter


public class JNDIVendorAdapter
extends JMSVendorAdapter

Uses JNDI to locate ConnectionFactory and Destinations

Authors:
Jaime Meritt (jmeritt@sonicsoftware.com)
Ray Chun (rchun@sonicsoftware.com)

Field Summary

static String
CONNECTION_FACTORY_JNDI_NAME
static String
CONTEXT_FACTORY
static String
PROVIDER_URL
static String
_CONNECTION_FACTORY_JNDI_NAME

Fields inherited from class org.apache.axis.components.jms.JMSVendorAdapter

CONNECT_ACTION, ON_EXCEPTION_ACTION, RECEIVE_ACTION, SEND_ACTION, SUBSCRIBE_ACTION

Method Summary

void
addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfConfig)
Populates the connection factory config table with properties from the JMS URL query string
Queue
getQueue(QueueSession session, String name)
QueueConnectionFactory
getQueueConnectionFactory(HashMap cfConfig)
Topic
getTopic(TopicSession session, String name)
TopicConnectionFactory
getTopicConnectionFactory(HashMap cfConfig)
boolean
isMatchingConnectionFactory(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

addVendorConnectionFactoryProperties, getJMSConnectionFactoryProperties, getJMSConnectorProperties, getQueue, getQueueConnectionFactory, getTopic, getTopicConnectionFactory, getVendorId, isMatchingConnectionFactory, isRecoverable, setProperties, setupApplicationProperties, setupMessageContext

Field Details

CONNECTION_FACTORY_JNDI_NAME

public static final String CONNECTION_FACTORY_JNDI_NAME


CONTEXT_FACTORY

public static final String CONTEXT_FACTORY


PROVIDER_URL

public static final String PROVIDER_URL


_CONNECTION_FACTORY_JNDI_NAME

public static final String _CONNECTION_FACTORY_JNDI_NAME

Method Details

addVendorConnectionFactoryProperties

public void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl,
                                                 HashMap cfConfig)
Populates the connection factory config table with properties from the JMS URL query string
Overrides:
addVendorConnectionFactoryProperties in interface 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 Queue getQueue(QueueSession session,
                      String name)
            throws Exception
Overrides:
getQueue in interface JMSVendorAdapter


getQueueConnectionFactory

public QueueConnectionFactory getQueueConnectionFactory(HashMap cfConfig)
            throws Exception
Overrides:
getQueueConnectionFactory in interface JMSVendorAdapter


getTopic

public Topic getTopic(TopicSession session,
                      String name)
            throws Exception
Overrides:
getTopic in interface JMSVendorAdapter


getTopicConnectionFactory

public TopicConnectionFactory getTopicConnectionFactory(HashMap cfConfig)
            throws Exception
Overrides:
getTopicConnectionFactory in interface JMSVendorAdapter


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.

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


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.