public class JmsDestinationPollingSource extends IntegrationObjectSupport implements MessageSource<Object>
JmsMessageDrivenEndpoint that uses Spring's MessageListener container
support is a better option.EXPRESSION_PARSER, logger| Constructor and Description |
|---|
JmsDestinationPollingSource(JmsTemplate jmsTemplate) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
Message<Object> |
receive()
|
void |
setDestination(Destination destination) |
void |
setDestinationName(String destinationName) |
void |
setExtractPayload(boolean extractPayload)
The flag to indicate if we should extract
body from JMS Message,
or use the received JMS Message as Message payload. |
void |
setHeaderMapper(JmsHeaderMapper headerMapper) |
void |
setMessageSelector(String messageSelector)
Specify a JMS Message Selector expression to use when receiving Messages.
|
void |
setSessionAcknowledgeMode(String sessionAcknowledgeMode) |
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic JmsDestinationPollingSource(JmsTemplate jmsTemplate)
public void setDestination(Destination destination)
public void setDestinationName(String destinationName)
public void setExtractPayload(boolean extractPayload)
body from JMS Message,
or use the received JMS Message as Message payload.extractPayload - the boolean flag. Defaults to true.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void setMessageSelector(String messageSelector)
messageSelector - The message selector.public void setHeaderMapper(JmsHeaderMapper headerMapper)
public void setSessionAcknowledgeMode(String sessionAcknowledgeMode)
public Message<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 MessageSource<Object>protected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupport