Package org.frankframework.jms
Interface IConnectionFactoryFactory
- All Known Implementing Classes:
JmsConnectionFactoryFactory,NarayanaConnectionFactoryFactory
public interface IConnectionFactoryFactory
-
Method Summary
Modifier and TypeMethodDescriptiondefault jakarta.jms.ConnectionFactorygetConnectionFactory(String connectionFactoryName) Lookup a JMSConnectionFactoryby name.jakarta.jms.ConnectionFactorygetConnectionFactory(String connectionFactoryName, Properties jndiEnvironment) Lookup a JMSConnectionFactoryby 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 JMSConnectionFactoryby 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 JMSConnectionFactoryby 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
-