Package org.apache.axis.components.jms
Class JMSVendorAdapter
java.lang.Object
org.apache.axis.components.jms.JMSVendorAdapter
- Direct Known Subclasses:
BeanVendorAdapter,JNDIVendorAdapter
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps) Creates a connection factory property table using values supplied in the endpoint addressCreates a JMS connector property table using values supplied in the endpoint address.Queueabstract QueueConnectionFactorygetQueueConnectionFactory(HashMap cfProps) Topicabstract TopicConnectionFactorygetTopicConnectionFactory(HashMap cfProps) abstract booleanisMatchingConnectionFactory(javax.jms.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 Details
-
SEND_ACTION
public static final int SEND_ACTION- See Also:
-
CONNECT_ACTION
public static final int CONNECT_ACTION- See Also:
-
SUBSCRIBE_ACTION
public static final int SUBSCRIBE_ACTION- See Also:
-
RECEIVE_ACTION
public static final int RECEIVE_ACTION- See Also:
-
ON_EXCEPTION_ACTION
public static final int ON_EXCEPTION_ACTION- See Also:
-
-
Constructor Details
-
JMSVendorAdapter
public JMSVendorAdapter()
-
-
Method Details
-
getQueueConnectionFactory
- Throws:
Exception
-
getTopicConnectionFactory
- Throws:
Exception
-
addVendorConnectionFactoryProperties
-
isMatchingConnectionFactory
public abstract boolean isMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, HashMap cfProps) -
getVendorId
-
getJMSConnectorProperties
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
-
getJMSConnectionFactoryProperties
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
-
getQueue
- Throws:
Exception
-
getTopic
- Throws:
Exception
-
isRecoverable
-
setProperties
- Throws:
JMSException
-
setupMessageContext
Set JMS properties in the message context. TODO: just copy all properties that are not used for the JMS connector or connection factory -
setupApplicationProperties
-