public class JmsDestinationPollingSource
extends org.springframework.integration.context.IntegrationObjectSupport
implements org.springframework.integration.core.MessageSource<java.lang.Object>
JmsMessageDrivenEndpoint
that uses Spring's MessageListener container
support is a better option.Constructor and Description |
---|
JmsDestinationPollingSource(org.springframework.jms.core.JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType() |
protected void |
onInit() |
org.springframework.messaging.Message<java.lang.Object> |
receive()
Will receive a JMS
Message converting and returning it as
a Spring Integration Message . |
void |
setDestination(javax.jms.Destination destination) |
void |
setDestinationName(java.lang.String destinationName) |
void |
setHeaderMapper(JmsHeaderMapper headerMapper) |
void |
setMessageSelector(java.lang.String messageSelector)
Specify a JMS Message Selector expression to use when receiving Messages.
|
void |
setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode) |
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JmsDestinationPollingSource(org.springframework.jms.core.JmsTemplate jmsTemplate)
public void setDestination(javax.jms.Destination destination)
public void setDestinationName(java.lang.String destinationName)
public java.lang.String getComponentType()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.context.IntegrationObjectSupport
public void setMessageSelector(java.lang.String messageSelector)
messageSelector
- The message selector.public void setHeaderMapper(JmsHeaderMapper headerMapper)
public void setSessionAcknowledgeMode(java.lang.String sessionAcknowledgeMode)
public org.springframework.messaging.Message<java.lang.Object> receive()
Message
converting and returning it as
a Spring Integration Message
. This method will also use the current
JmsHeaderMapper
instance to map JMS properties to the MessageHeaders.receive
in interface org.springframework.integration.core.MessageSource<java.lang.Object>
protected void onInit()
onInit
in class org.springframework.integration.context.IntegrationObjectSupport