Package org.frankframework.jms
Interface IConnectionFactoryFactory
- All Known Implementing Classes:
JmsConnectionFactoryFactory
,NarayanaConnectionFactoryFactory
public interface IConnectionFactoryFactory
-
Method Summary
Modifier and TypeMethodDescriptiondefault jakarta.jms.ConnectionFactory
getConnectionFactory
(String connectionFactoryName) Lookup a JMSConnectionFactory
by name.jakarta.jms.ConnectionFactory
getConnectionFactory
(String connectionFactoryName, Properties jndiEnvironment) Lookup a JMSConnectionFactory
by name, with optional JNDI environment or other additional properties to be used for the lookup of the datasource.Return all known/registered ConnectionFactories
-
Method Details
-
getConnectionFactory
@Nonnull default jakarta.jms.ConnectionFactory getConnectionFactory(@Nonnull String connectionFactoryName) throws IllegalStateException, NoSuchElementException Lookup a JMSConnectionFactory
by name.- Throws:
NoSuchElementException
- if the DataSource cannot be found in any of the configured sourcesIllegalStateException
- if the DataSource cannot be created
-
getConnectionFactory
@Nonnull jakarta.jms.ConnectionFactory getConnectionFactory(@Nonnull String connectionFactoryName, @Nullable Properties jndiEnvironment) throws IllegalStateException, NoSuchElementException Lookup a JMSConnectionFactory
by name, with optional JNDI environment or other additional properties to be used for the lookup of the datasource.- Throws:
NoSuchElementException
- if the DataSource cannot be found in any of the configured sourcesIllegalStateException
- if the DataSource cannot be created- See Also:
-
getConnectionFactoryNames
Return all known/registered ConnectionFactories
-