public class JmsDestinationPollingSource extends IntegrationObjectSupport implements MessageSource<java.lang.Object>
JmsMessageDrivenEndpoint
that uses Spring's MessageListener container
support is a better option.logger
Constructor and Description |
---|
JmsDestinationPollingSource(org.springframework.jms.core.JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
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.
|
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, 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()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void setMessageSelector(java.lang.String messageSelector)
public void setHeaderMapper(JmsHeaderMapper headerMapper)
public 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 MessageSource<java.lang.Object>