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 aConnectionFactory
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, jndiName
-
Fields inherited from class com.adaptris.core.jms.VendorImplementationImp
log
-
-
Constructor Summary
Constructors Constructor Description StandardJndiImplementation()
StandardJndiImplementation(java.lang.String jndiName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectionFactory
createConnectionFactory()
Returns 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, useJndiForTopics
-
Methods inherited from class com.adaptris.core.jms.VendorImplementationImp
applyVendorSessionProperties, createConsumer, createDestination, createQueueReceiver, createSession, createTopicSubscriber, prepare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
-
Methods inherited from interface com.adaptris.core.jms.ConnectionComparator
connectionEquals
-
Methods inherited from interface com.adaptris.core.jms.VendorImplementation
createConnection
-
Methods inherited from interface com.adaptris.core.jms.VendorImplementationBase
createConsumer, createDestination, createQueue, createQueueReceiver, createSession, createTopic, createTopicSubscriber, retrieveBrokerDetailsForLogging
-
-
-
-
Method Detail
-
createConnectionFactory
public javax.jms.ConnectionFactory createConnectionFactory() throws javax.jms.JMSException
Description copied from interface:VendorImplementation
Returns aConnectionFactory
.- Specified by:
createConnectionFactory
in interfaceVendorImplementation
- Returns:
- an instance of
ConnectionFactory
- Throws:
javax.jms.JMSException
- if any occurs
-
-