org.apache.axis.components.jms

Class JMSVendorAdapter

Known Direct Subclasses:
BeanVendorAdapter, JNDIVendorAdapter

public abstract class JMSVendorAdapter
extends java.lang.Object

SPI Interface that all JMSVendorAdaptors must implement. Allows for ConnectionFactory creation and Destination lookup
Authors:
Jaime Meritt (jmeritt@sonicsoftware.com)
Ray Chun (rchun@sonicsoftware.com)

Field Summary

static int
CONNECT_ACTION
static int
ON_EXCEPTION_ACTION
static int
RECEIVE_ACTION
static int
SEND_ACTION
static int
SUBSCRIBE_ACTION

Method Summary

abstract void
addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps)
HashMap
getJMSConnectionFactoryProperties(JMSURLHelper jmsurl)
Creates a connection factory property table using values supplied in the endpoint address
HashMap
getJMSConnectorProperties(JMSURLHelper jmsurl)
Creates a JMS connector property table using values supplied in the endpoint address.
Queue
getQueue(QueueSession session, String name)
abstract QueueConnectionFactory
getQueueConnectionFactory(HashMap cfProps)
Topic
getTopic(TopicSession session, String name)
abstract TopicConnectionFactory
getTopicConnectionFactory(HashMap cfProps)
String
getVendorId()
abstract boolean
isMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps)
boolean
isRecoverable(Throwable thrown, int action)
void
setProperties(Message message, HashMap props)
void
setupApplicationProperties(MessageContext context, Call call, JMSURLHelper jmsurl)
void
setupMessageContext(MessageContext context, Call call, JMSURLHelper jmsurl)
Set JMS properties in the message context.

Field Details

CONNECT_ACTION

public static final int CONNECT_ACTION
Field Value:
1

ON_EXCEPTION_ACTION

public static final int ON_EXCEPTION_ACTION
Field Value:
4

RECEIVE_ACTION

public static final int RECEIVE_ACTION
Field Value:
3

SEND_ACTION

public static final int SEND_ACTION
Field Value:
0

SUBSCRIBE_ACTION

public static final int SUBSCRIBE_ACTION
Field Value:
2

Method Details

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)
            throws Exception

getQueueConnectionFactory

public abstract QueueConnectionFactory getQueueConnectionFactory(HashMap cfProps)
            throws Exception

getTopic

public Topic getTopic(TopicSession session,
                      String name)
            throws Exception

getTopicConnectionFactory

public abstract TopicConnectionFactory getTopicConnectionFactory(HashMap cfProps)
            throws Exception

getVendorId

public String getVendorId()

isMatchingConnectionFactory

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

isRecoverable

public boolean isRecoverable(Throwable thrown,
                             int action)

setProperties

public void setProperties(Message message,
                          HashMap props)
            throws JMSException

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 © 2005 Apache Web Services Project. All Rights Reserved.