SPI Interface that all JMSVendorAdaptors must implement. Allows for
ConnectionFactory creation and Destination lookup
CONNECT_ACTION
public static final int CONNECT_ACTION
- 1
ON_EXCEPTION_ACTION
public static final int ON_EXCEPTION_ACTION
- 4
RECEIVE_ACTION
public static final int RECEIVE_ACTION
- 3
SEND_ACTION
public static final int SEND_ACTION
- 0
SUBSCRIBE_ACTION
public static final int SUBSCRIBE_ACTION
- 2
addVendorConnectionFactoryProperties
public 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
jmsurl
- the endpoint address
- 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.")
jmsurl
- the endpoint address
- the set of properties to be used for instantiating the JMS connector
getQueue
public Queue getQueue(QueueSession session,
String name)
throws Exception
getQueueConnectionFactory
public QueueConnectionFactory getQueueConnectionFactory(HashMap cfProps)
throws Exception
getTopic
public Topic getTopic(TopicSession session,
String name)
throws Exception
getTopicConnectionFactory
public TopicConnectionFactory getTopicConnectionFactory(HashMap cfProps)
throws Exception
getVendorId
public String getVendorId()
isMatchingConnectionFactory
public 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
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