org.apache.axis.components.jms

Class 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
static StringCONNECTION_FACTORY_JNDI_NAME
static StringCONTEXT_FACTORY
static StringPROVIDER_URL
static String_CONNECTION_FACTORY_JNDI_NAME
Method Summary
voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfConfig)
Populates the connection factory config table with properties from the JMS URL query string
QueuegetQueue(QueueSession session, String name)
QueueConnectionFactorygetQueueConnectionFactory(HashMap cfConfig)
TopicgetTopic(TopicSession session, String name)
TopicConnectionFactorygetTopicConnectionFactory(HashMap cfConfig)
booleanisMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper originalJMSURL, HashMap cfProps)
Check that the attributes of the candidate connection factory match the requested connection factory properties.

Field Detail

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 Detail

addVendorConnectionFactoryProperties

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

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)

getQueueConnectionFactory

public QueueConnectionFactory getQueueConnectionFactory(HashMap cfConfig)

getTopic

public Topic getTopic(TopicSession session, String name)

getTopicConnectionFactory

public TopicConnectionFactory getTopicConnectionFactory(HashMap cfConfig)

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.