public class JmsMessageDrivenEndpoint
extends org.springframework.integration.endpoint.MessageProducerSupport
implements org.springframework.beans.factory.DisposableBean, org.springframework.integration.context.OrderlyShutdownCapable
lifecycleCondition, lifecycleLock| Constructor and Description |
|---|
JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener)
Construct an instance with an externally configured container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
afterShutdown() |
void |
afterSingletonsInstantiated() |
int |
beforeShutdown() |
void |
destroy() |
protected void |
doStart() |
protected void |
doStop() |
java.lang.String |
getComponentType() |
ChannelPublishingJmsMessageListener |
getListener() |
protected void |
onInit() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setErrorChannel(org.springframework.messaging.MessageChannel errorChannel) |
void |
setErrorChannelName(java.lang.String errorChannelName) |
void |
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel) |
void |
setOutputChannelName(java.lang.String outputChannelName) |
void |
setSendTimeout(long sendTimeout) |
void |
setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode)
Set the session acknowledge mode on the listener container.
|
void |
setShouldTrack(boolean shouldTrack) |
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorMessageStrategydoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringpublic JmsMessageDrivenEndpoint(org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer,
ChannelPublishingJmsMessageListener listener)
listenerContainer - the container.listener - the listener.public void setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode)
DefaultMessageListenerContainer.sessionAcknowledgeMode - the acknowledge mode.public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
setOutputChannel in interface org.springframework.integration.core.MessageProducersetOutputChannel in class org.springframework.integration.endpoint.MessageProducerSupportpublic void setOutputChannelName(java.lang.String outputChannelName)
setOutputChannelName in class org.springframework.integration.endpoint.MessageProducerSupportpublic void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel)
setErrorChannel in class org.springframework.integration.endpoint.MessageProducerSupportpublic void setErrorChannelName(java.lang.String errorChannelName)
setErrorChannelName in class org.springframework.integration.endpoint.MessageProducerSupportpublic void setSendTimeout(long sendTimeout)
setSendTimeout in class org.springframework.integration.endpoint.MessageProducerSupportpublic void setShouldTrack(boolean shouldTrack)
setShouldTrack in interface org.springframework.integration.support.management.TrackableComponentsetShouldTrack in class org.springframework.integration.endpoint.MessageProducerSupportpublic ChannelPublishingJmsMessageListener getListener()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class org.springframework.integration.context.IntegrationObjectSupportorg.springframework.beans.BeansExceptionpublic java.lang.String getComponentType()
getComponentType in interface org.springframework.integration.support.context.NamedComponentgetComponentType in class org.springframework.integration.context.IntegrationObjectSupportpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonafterSingletonsInstantiated in class org.springframework.integration.endpoint.MessageProducerSupportprotected void onInit()
onInit in class org.springframework.integration.endpoint.MessageProducerSupportprotected void doStart()
doStart in class org.springframework.integration.endpoint.MessageProducerSupportprotected void doStop()
doStop in class org.springframework.integration.endpoint.MessageProducerSupportpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class org.springframework.integration.endpoint.AbstractEndpointjava.lang.Exceptionpublic int beforeShutdown()
beforeShutdown in interface org.springframework.integration.context.OrderlyShutdownCapablepublic int afterShutdown()
afterShutdown in interface org.springframework.integration.context.OrderlyShutdownCapable