public interface VendorImplementation extends VendorImplementationBase
Abstract factory that insulates vendor-specific code from the rest of the com.adaptris.core.jms
package.
Modifier and Type | Method and Description |
---|---|
default javax.jms.Connection |
createConnection(javax.jms.ConnectionFactory factory,
JmsConnectionConfig cfg)
Create a connection based on the factory and configuration.
|
javax.jms.ConnectionFactory |
createConnectionFactory()
Returns a
ConnectionFactory . |
createConsumer, createDestination, createQueue, createQueueReceiver, createSession, createTopic, createTopicSubscriber, retrieveBrokerDetailsForLogging
prepare
connectionEquals
javax.jms.ConnectionFactory createConnectionFactory() throws javax.jms.JMSException
ConnectionFactory
.ConnectionFactory
javax.jms.JMSException
- if any occursdefault javax.jms.Connection createConnection(javax.jms.ConnectionFactory factory, JmsConnectionConfig cfg) throws java.lang.Exception
If the vendor in question doesn't support the JMS 1.1 API specification (i.e. ConnectionFactory
doesn't expose a createConnection()
method, this method should be explicitly overriden by
the concrete implementations to do the right thing.
factory
- the jms connection factory.cfg
- the connection configuration (i.e. username/password)javax.jms.Connection
instancejava.lang.Exception
- on exceptioncreateConnection()
or
createConnection(String,String)
depending on whether a username is configured
or not; this should be appropriate for all JMS 1.1 specifications.