public class JmsDestinationPollingSource extends IntegrationObjectSupport implements MessageSource<Object>
JmsMessageDrivenEndpoint
that uses Spring's MessageListener container
support is a better option.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.
|
Message<Object> |
receive()
|
void |
setDestination(Destination destination) |
void |
setDestinationName(String destinationName) |
void |
setHeaderMapper(JmsHeaderMapper headerMapper) |
void |
setMessageSelector(String messageSelector)
Specify a JMS Message Selector expression to use when receiving Messages.
|
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JmsDestinationPollingSource(JmsTemplate jmsTemplate)
public void setDestination(Destination destination)
public void setDestinationName(String destinationName)
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void setMessageSelector(String messageSelector)
messageSelector
- The message selector.public void setHeaderMapper(JmsHeaderMapper headerMapper)
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>