Package org.apache.axis.components.jms
Class JMSVendorAdapter
- java.lang.Object
-
- org.apache.axis.components.jms.JMSVendorAdapter
-
- Direct Known Subclasses:
BeanVendorAdapter,JNDIVendorAdapter
public abstract class JMSVendorAdapter extends java.lang.ObjectSPI 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
Fields Modifier and Type Field Description static intCONNECT_ACTIONstatic intON_EXCEPTION_ACTIONstatic intRECEIVE_ACTIONstatic intSEND_ACTIONstatic intSUBSCRIBE_ACTION
-
Constructor Summary
Constructors Constructor Description JMSVendorAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfProps)java.util.HashMapgetJMSConnectionFactoryProperties(JMSURLHelper jmsurl)Creates a connection factory property table using values supplied in the endpoint addressjava.util.HashMapgetJMSConnectorProperties(JMSURLHelper jmsurl)Creates a JMS connector property table using values supplied in the endpoint address.QueuegetQueue(QueueSession session, java.lang.String name)abstract QueueConnectionFactorygetQueueConnectionFactory(java.util.HashMap cfProps)TopicgetTopic(TopicSession session, java.lang.String name)abstract TopicConnectionFactorygetTopicConnectionFactory(java.util.HashMap cfProps)java.lang.StringgetVendorId()abstract booleanisMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, java.util.HashMap cfProps)booleanisRecoverable(java.lang.Throwable thrown, int action)voidsetProperties(Message message, java.util.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
-
SEND_ACTION
public static final int SEND_ACTION
- See Also:
- Constant Field Values
-
CONNECT_ACTION
public static final int CONNECT_ACTION
- See Also:
- Constant Field Values
-
SUBSCRIBE_ACTION
public static final int SUBSCRIBE_ACTION
- See Also:
- Constant Field Values
-
RECEIVE_ACTION
public static final int RECEIVE_ACTION
- See Also:
- Constant Field Values
-
ON_EXCEPTION_ACTION
public static final int ON_EXCEPTION_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueueConnectionFactory
public abstract QueueConnectionFactory getQueueConnectionFactory(java.util.HashMap cfProps) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTopicConnectionFactory
public abstract TopicConnectionFactory getTopicConnectionFactory(java.util.HashMap cfProps) throws java.lang.Exception- Throws:
java.lang.Exception
-
addVendorConnectionFactoryProperties
public abstract void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, java.util.HashMap cfProps)
-
isMatchingConnectionFactory
public abstract boolean isMatchingConnectionFactory(javax.jms.ConnectionFactory cf, JMSURLHelper jmsurl, java.util.HashMap cfProps)
-
getVendorId
public java.lang.String getVendorId()
-
getJMSConnectorProperties
public java.util.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
-
getJMSConnectionFactoryProperties
public java.util.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
-
getQueue
public Queue getQueue(QueueSession session, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTopic
public Topic getTopic(TopicSession session, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
isRecoverable
public boolean isRecoverable(java.lang.Throwable thrown, int action)
-
setProperties
public void setProperties(Message message, java.util.HashMap props) throws JMSException- Throws:
JMSException
-
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
-
setupApplicationProperties
public void setupApplicationProperties(MessageContext context, Call call, JMSURLHelper jmsurl)
-
-