Class JMSVendorAdapter

java.lang.Object
org.apache.axis.components.jms.JMSVendorAdapter
Direct Known Subclasses:
BeanVendorAdapter, JNDIVendorAdapter

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 Details

  • Constructor Details

    • JMSVendorAdapter

      public JMSVendorAdapter()
  • Method Details

    • getQueueConnectionFactory

      public abstract QueueConnectionFactory getQueueConnectionFactory(HashMap cfProps) throws Exception
      Throws:
      Exception
    • getTopicConnectionFactory

      public abstract TopicConnectionFactory getTopicConnectionFactory(HashMap cfProps) throws Exception
      Throws:
      Exception
    • addVendorConnectionFactoryProperties

      public abstract void addVendorConnectionFactoryProperties(JMSURLHelper jmsurl, HashMap cfProps)
    • isMatchingConnectionFactory

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

      public String getVendorId()
    • 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
    • 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
    • getQueue

      public Queue getQueue(QueueSession session, String name) throws Exception
      Throws:
      Exception
    • getTopic

      public Topic getTopic(TopicSession session, String name) throws Exception
      Throws:
      Exception
    • isRecoverable

      public boolean isRecoverable(Throwable thrown, int action)
    • setProperties

      public void setProperties(Message message, 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)