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