@ApplicationScoped @Default public class BusConnectionFactoryProvider extends Object
ConnectionFactory bound to the name Constants.CONNECTION_FACTORY_JNDI with
retries (see connectionFactoryRetryAfterMs) and timeout connectionFactoryLookupTimeoutMs.| Constructor and Description |
|---|
BusConnectionFactoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.ConnectionFactory |
getConnectionFactory()
Returns an instance of
ConnectionFactory looked up lazily using the JNDI name
Constants.CONNECTION_FACTORY_JNDI. |
public javax.jms.ConnectionFactory getConnectionFactory()
ConnectionFactory looked up lazily using the JNDI name
Constants.CONNECTION_FACTORY_JNDI. The lookup is retried if necessary (see
connectionFactoryRetryAfterMs) and a RuntimeException is thrown if the timeout set in
connectionFactoryLookupTimeoutMs is exceeded.ConnectionFactoryRuntimeException - if the timeout set in connectionFactoryLookupTimeoutMs is exceeded or if a
NamingException other than NameNotFoundException occurs.Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.