Package com.adaptris.core.jms.jndi
Class StandardJndiImplementation
java.lang.Object
com.adaptris.core.jms.VendorImplementationImp
com.adaptris.core.jms.jndi.BaseJndiImplementation
com.adaptris.core.jms.jndi.StandardJndiImplementation
- All Implemented Interfaces:
ComponentLifecycleExtension,ConnectionComparator<VendorImplementationBase>,VendorImplementation,VendorImplementationBase
- Direct Known Subclasses:
CachedDestinationJndiImplementation
public class StandardJndiImplementation
extends BaseJndiImplementation
implements VendorImplementation
VendorImplementation that gets a ConnectionFactory from the configured JNDI Store.
This implementation ignores any broker configuration in JmsConnection.
Depending on your configuration you will need have additional jars available to the Adapter that handles the specific ConnectionFactories that are referenced in JNDI.
In the adapter configuration file this class is aliased as standard-jndi-implementation which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.jms.jndi.BaseJndiImplementation
context, jndiNameFields inherited from class com.adaptris.core.jms.VendorImplementationImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jms.ConnectionFactoryReturns aConnectionFactory.Methods inherited from class com.adaptris.core.jms.jndi.BaseJndiImplementation
asList, connectionEquals, createQueue, createTopic, enableEncodedPasswords, getEnableEncodedPasswords, getEncodedPasswordKeys, getExtraFactoryConfiguration, getJndiName, getJndiParams, getNewContextOnException, getUseJndiForQueues, getUseJndiForTopics, lookup, newContextOnException, retrieveBrokerDetailsForLogging, setEnableEncodedPasswords, setEncodedPasswordKeys, setExtraFactoryConfiguration, setJndiName, setJndiParams, setNewContextOnException, setUseJndiForQueues, setUseJndiForTopics, useJndiForQueues, useJndiForTopicsMethods inherited from class com.adaptris.core.jms.VendorImplementationImp
applyVendorSessionProperties, createConsumer, createDestination, createQueueReceiver, createSession, createTopicSubscriber, prepareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepareMethods inherited from interface com.adaptris.core.jms.ConnectionComparator
connectionEqualsMethods inherited from interface com.adaptris.core.jms.VendorImplementation
createConnectionMethods inherited from interface com.adaptris.core.jms.VendorImplementationBase
createConsumer, createDestination, createQueue, createQueueReceiver, createSession, createTopic, createTopicSubscriber, retrieveBrokerDetailsForLogging
-
Constructor Details
-
StandardJndiImplementation
public StandardJndiImplementation() -
StandardJndiImplementation
-
-
Method Details
-
createConnectionFactory
public javax.jms.ConnectionFactory createConnectionFactory() throws javax.jms.JMSExceptionDescription copied from interface:VendorImplementationReturns aConnectionFactory.- Specified by:
createConnectionFactoryin interfaceVendorImplementation- Returns:
- an instance of
ConnectionFactory - Throws:
javax.jms.JMSException- if any occurs
-