@Tags(value={"jms","jndi","messaging","integration","queue","topic","publish","subscribe"}) @CapabilityDescription(value="Provides a service to lookup an existing JMS ConnectionFactory using the Java Naming and Directory Interface (JNDI).") @DynamicProperty(description="In order to perform a JNDI Lookup, an Initial Context must be established. When this is done, an Environment can be established for the context. Any dynamic/user-defined property that is added to this Controller Service will be added as an Environment configuration/variable to this Context.", name="The name of a JNDI Initial Context environment variable.", value="The value of the JNDI Initial Context Environment variable.", expressionLanguageScope=VARIABLE_REGISTRY) @SeeAlso(classNames={"org.apache.nifi.jms.processors.ConsumeJMS","org.apache.nifi.jms.processors.PublishJMS","org.apache.nifi.jms.cf.JMSConnectionFactoryProvider"}) public class JndiJmsConnectionFactoryProvider extends AbstractControllerService implements JMSConnectionFactoryProviderDefinition
| Modifier and Type | Field and Description |
|---|---|
(package private) static PropertyDescriptor |
CONNECTION_FACTORY_NAME |
private javax.jms.ConnectionFactory |
connectionFactory |
(package private) static PropertyDescriptor |
CREDENTIALS |
(package private) static PropertyDescriptor |
INITIAL_NAMING_FACTORY_CLASS |
(package private) static PropertyDescriptor |
NAMING_FACTORY_LIBRARIES |
(package private) static PropertyDescriptor |
NAMING_PROVIDER_URL |
(package private) static PropertyDescriptor |
PRINCIPAL |
private static List<PropertyDescriptor> |
PROPERTY_DESCRIPTORS |
| Constructor and Description |
|---|
JndiJmsConnectionFactoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
private Context |
createInitialContext() |
javax.jms.ConnectionFactory |
getConnectionFactory() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
static Object |
instrumentWithClassLoader(Object obj,
ClassLoader classLoader,
Class<?>... interfaces) |
private javax.jms.ConnectionFactory |
lookupConnectionFactory() |
void |
resetConnectionFactory(javax.jms.ConnectionFactory cachedFactory) |
void |
shutdown() |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final PropertyDescriptor INITIAL_NAMING_FACTORY_CLASS
static final PropertyDescriptor NAMING_PROVIDER_URL
static final PropertyDescriptor CONNECTION_FACTORY_NAME
static final PropertyDescriptor NAMING_FACTORY_LIBRARIES
static final PropertyDescriptor PRINCIPAL
static final PropertyDescriptor CREDENTIALS
private static final List<PropertyDescriptor> PROPERTY_DESCRIPTORS
private javax.jms.ConnectionFactory connectionFactory
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponent@OnDisabled public void shutdown()
public void resetConnectionFactory(javax.jms.ConnectionFactory cachedFactory)
resetConnectionFactory in interface JMSConnectionFactoryProviderDefinitionpublic javax.jms.ConnectionFactory getConnectionFactory()
getConnectionFactory in interface JMSConnectionFactoryProviderDefinitionprivate javax.jms.ConnectionFactory lookupConnectionFactory()
private Context createInitialContext() throws NamingException
NamingExceptionpublic static Object instrumentWithClassLoader(Object obj, ClassLoader classLoader, Class<?>... interfaces)
Copyright © 2019 Apache NiFi Project. All rights reserved.