public class SimpleMessageListenerContainer extends org.apache.camel.support.service.ServiceSupport implements MessageListenerContainer, javax.jms.ExceptionListener
| Constructor and Description |
|---|
SimpleMessageListenerContainer(SjmsEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesConfigured(org.apache.camel.CamelContext camelContext) |
protected void |
configureConsumer(javax.jms.MessageConsumer consumer,
javax.jms.Session session) |
protected void |
createConnection() |
protected javax.jms.MessageConsumer |
createMessageConsumer(javax.jms.Session session) |
protected javax.jms.Session |
createSession(javax.jms.Connection connection,
SjmsEndpoint endpoint) |
protected void |
doStart() |
protected void |
doStop() |
String |
getClientId() |
int |
getConcurrentConsumers() |
javax.jms.ConnectionFactory |
getConnectionFactory() |
DestinationCreationStrategy |
getDestinationCreationStrategy() |
String |
getDestinationName() |
SjmsEndpoint |
getEndpoint() |
protected void |
initConsumers() |
void |
onException(javax.jms.JMSException exception) |
protected boolean |
recoverConnection(org.apache.camel.util.backoff.BackOffTimer.Task task) |
protected void |
refreshConnection() |
protected void |
scheduleConnectionRecovery() |
void |
setClientId(String clientId) |
void |
setConcurrentConsumers(int concurrentConsumers) |
void |
setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy) |
void |
setDestinationName(String destinationName) |
void |
setExceptionListener(javax.jms.ExceptionListener exceptionListener) |
void |
setMessageListener(SessionMessageListener messageListener) |
protected void |
startConnection() |
protected void |
stopConnection() |
protected void |
stopConsumers() |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SimpleMessageListenerContainer(SjmsEndpoint endpoint)
public SjmsEndpoint getEndpoint()
public void setMessageListener(SessionMessageListener messageListener)
setMessageListener in interface MessageListenerContainerpublic void setExceptionListener(javax.jms.ExceptionListener exceptionListener)
setExceptionListener in interface MessageListenerContainerpublic String getClientId()
public void setClientId(String clientId)
public String getDestinationName()
public void setDestinationName(String destinationName)
public DestinationCreationStrategy getDestinationCreationStrategy()
public void setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy)
public int getConcurrentConsumers()
public void setConcurrentConsumers(int concurrentConsumers)
public void afterPropertiesConfigured(org.apache.camel.CamelContext camelContext)
afterPropertiesConfigured in interface org.apache.camel.AfterPropertiesConfiguredpublic javax.jms.ConnectionFactory getConnectionFactory()
getConnectionFactory in interface MessageListenerContainerprotected void configureConsumer(javax.jms.MessageConsumer consumer,
javax.jms.Session session)
throws Exception
Exceptionpublic void onException(javax.jms.JMSException exception)
onException in interface javax.jms.ExceptionListenerprotected boolean recoverConnection(org.apache.camel.util.backoff.BackOffTimer.Task task)
throws Exception
Exceptionprotected void scheduleConnectionRecovery()
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionprotected javax.jms.Session createSession(javax.jms.Connection connection,
SjmsEndpoint endpoint)
throws Exception
Exceptionprotected javax.jms.MessageConsumer createMessageConsumer(javax.jms.Session session)
throws Exception
Exceptionprotected void stopConnection()
Apache Camel