org.apache.axis.components.jms

Class JMSVendorAdapter

public abstract class JMSVendorAdapter extends Object

SPI Interface that all JMSVendorAdaptors must implement. Allows for ConnectionFactory creation and Destination lookup

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

Field Summary
static intCONNECT_ACTION
static intON_EXCEPTION_ACTION
static intRECEIVE_ACTION
static intSEND_ACTION
static intSUBSCRIBE_ACTION
Method Summary
abstract voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps)
HashMapgetJMSConnectionFactoryProperties(JMSURLHelper jmsurl)
Creates a connection factory property table using values supplied in the endpoint address
HashMapgetJMSConnectorProperties(JMSURLHelper jmsurl)
Creates a JMS connector property table using values supplied in the endpoint address.
QueuegetQueue(QueueSession session, String name)
abstract QueueConnectionFactorygetQueueConnectionFactory(HashMap cfProps)
TopicgetTopic(TopicSession session, String name)
abstract TopicConnectionFactorygetTopicConnectionFactory(HashMap cfProps)
StringgetVendorId()
abstract booleanisMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps)
booleanisRecoverable(Throwable thrown, int action)
voidsetProperties(Message message, HashMap props)
voidsetupApplicationProperties(MessageContext context, Call call, JMSURLHelper jmsurl)
voidsetupMessageContext(MessageContext context, Call call, JMSURLHelper jmsurl)
Set JMS properties in the message context.

Field Detail

CONNECT_ACTION

public static final int CONNECT_ACTION

ON_EXCEPTION_ACTION

public static final int ON_EXCEPTION_ACTION

RECEIVE_ACTION

public static final int RECEIVE_ACTION

SEND_ACTION

public static final int SEND_ACTION

SUBSCRIBE_ACTION

public static final int SUBSCRIBE_ACTION

Method Detail

addVendorConnectionFactoryProperties

public abstract void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps)

getJMSConnectionFactoryProperties

public HashMap getJMSConnectionFactoryProperties(JMSURLHelper jmsurl)
Creates a connection factory property table using values supplied in the endpoint address

Parameters: jmsurl the endpoint address

Returns: the set of properties to be used for instantiating the connection factory

getJMSConnectorProperties

public HashMap getJMSConnectorProperties(JMSURLHelper jmsurl)
Creates a JMS connector property table using values supplied in the endpoint address. Properties are translated from the short form in the endpoint address to the long form (prefixed by "transport.jms.")

Parameters: jmsurl the endpoint address

Returns: the set of properties to be used for instantiating the JMS connector

getQueue

public Queue getQueue(QueueSession session, String name)

getQueueConnectionFactory

public abstract QueueConnectionFactory getQueueConnectionFactory(HashMap cfProps)

getTopic

public Topic getTopic(TopicSession session, String name)

getTopicConnectionFactory

public abstract TopicConnectionFactory getTopicConnectionFactory(HashMap cfProps)

getVendorId

public String getVendorId()

isMatchingConnectionFactory

public abstract boolean isMatchingConnectionFactory(ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps)

isRecoverable

public boolean isRecoverable(Throwable thrown, int action)

setProperties

public void setProperties(Message message, HashMap props)

setupApplicationProperties

public void setupApplicationProperties(MessageContext context, Call call, JMSURLHelper jmsurl)

setupMessageContext

public void setupMessageContext(MessageContext context, Call call, JMSURLHelper jmsurl)
Set JMS properties in the message context. TODO: just copy all properties that are not used for the JMS connector or connection factory
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.