public class IkasanMessageListenerContainer extends org.springframework.jms.listener.DefaultMessageListenerContainer implements MessageProvider, Configured<SpringMessageConsumerConfiguration>
CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, CACHE_SESSION, DEFAULT_RECOVERY_INTERVAL, DEFAULT_THREAD_NAME_PREFIX
DEFAULT_RECEIVE_TIMEOUT
Constructor and Description |
---|
IkasanMessageListenerContainer()
Constructor with preferred defaults.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Stop Spring from failing on deployment if we dont have an initial configuration - that's ok.
|
SpringMessageConsumerConfiguration |
getConfiguration() |
void |
recoverSharedConnection()
Attempt to recover a shared connection, if its used
|
void |
setConfiguration(SpringMessageConsumerConfiguration configuration) |
void |
start() |
createDefaultTaskExecutor, doInitialize, doRescheduleTask, doShutdown, establishSharedConnection, getActiveConsumerCount, getCacheLevel, getConcurrentConsumers, getIdleConsumerLimit, getIdleTaskExecutionLimit, getMaxConcurrentConsumers, getMaxMessagesPerTask, getScheduledConsumerCount, handleListenerSetupFailure, initialize, isRegisteredWithDestination, messageReceived, noMessageReceived, recoverAfterListenerSetupFailure, refreshConnectionUntilSuccessful, refreshDestination, scheduleNewInvokerIfAppropriate, setCacheLevel, setCacheLevelName, setConcurrency, setConcurrentConsumers, setIdleConsumerLimit, setIdleTaskExecutionLimit, setMaxConcurrentConsumers, setMaxMessagesPerTask, setRecoveryInterval, setTaskExecutor, sharedConnectionEnabled, sleepInbetweenRecoveryAttempts, startSharedConnection, stop, stopSharedConnection, validateConfiguration
createConsumer, createListenerConsumer, doReceiveAndExecute, getConnection, getSession, getTransactionManager, isPubSubNoLocal, isSessionLocallyTransacted, receiveAndExecute, receiveMessage, setPubSubNoLocal, setReceiveTimeout, setSessionTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, shouldCommitAfterNoMessageReceived
checkMessageListener, commitIfNecessary, doExecuteListener, doInvokeListener, doInvokeListener, executeListener, getDefaultSubscriptionName, getDestination, getDestinationDescription, getDestinationName, getDurableSubscriptionName, getExceptionListener, getMessageListener, getMessageSelector, handleListenerException, invokeErrorHandler, invokeExceptionListener, invokeListener, isAcceptMessagesWhileStopping, isExposeListenerSession, isSubscriptionDurable, rollbackIfNecessary, rollbackOnExceptionIfNecessary, setAcceptMessagesWhileStopping, setDestination, setDestinationName, setDurableSubscriptionName, setErrorHandler, setExceptionListener, setExposeListenerSession, setMessageListener, setMessageSelector, setSubscriptionDurable
createSharedConnection, destroy, doStart, doStop, getBeanName, getClientId, getPausedTaskCount, getPhase, getSharedConnection, isActive, isAutoStartup, isRunning, logRejectedTask, prepareSharedConnection, refreshSharedConnection, rescheduleTaskIfNecessary, resumePausedTasks, runningAllowed, setAutoStartup, setBeanName, setClientId, setPhase, shutdown, stop
getDestinationResolver, isPubSubDomain, resolveDestinationName, setDestinationResolver, setPubSubDomain
convertJmsAccessException, createConnection, createSession, getConnectionFactory, getSessionAcknowledgeMode, isClientAcknowledge, isSessionTransacted, setConnectionFactory, setSessionAcknowledgeMode, setSessionAcknowledgeModeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRunning, stop
public IkasanMessageListenerContainer()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.jms.listener.AbstractJmsListeningContainer
public SpringMessageConsumerConfiguration getConfiguration()
getConfiguration
in interface Configured<SpringMessageConsumerConfiguration>
public void setConfiguration(SpringMessageConsumerConfiguration configuration)
setConfiguration
in interface Configured<SpringMessageConsumerConfiguration>
public void start()
start
in interface MessageProvider
start
in interface org.springframework.context.Lifecycle
start
in class org.springframework.jms.listener.DefaultMessageListenerContainer
public void recoverSharedConnection() throws javax.jms.JMSException
javax.jms.JMSException
- if the underlying provider cannot re-establish itselfAbstractJmsListeningContainer.refreshSharedConnection()
Copyright © 2007-2015 Ikasan. All Rights Reserved.