org.springframework.integration.jms
Class JmsDestinationPollingSource
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.jms.AbstractJmsTemplateBasedAdapter
org.springframework.integration.jms.JmsDestinationPollingSource
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, NamedComponent, MessageSource<Object>
public class JmsDestinationPollingSource
- extends AbstractJmsTemplateBasedAdapter
- implements MessageSource<Object>
A source for receiving JMS Messages with a polling listener. This source is
only recommended for very low message volume. Otherwise, the
JmsMessageDrivenEndpoint
that uses Spring's MessageListener container
support is a better option.
- Author:
- Mark Fisher, Oleg Zhurakousky
Methods inherited from class org.springframework.integration.jms.AbstractJmsTemplateBasedAdapter |
getJmsTemplate, onInit, setConnectionFactory, setDeliveryMode, setDeliveryPersistent, setDestination, setDestinationName, setDestinationResolver, setExplicitQosEnabled, setExtractPayload, setHeaderMapper, setMessageConverter, setPriority, setPubSubDomain, setTimeToLive, shouldExtractPayload |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
JmsDestinationPollingSource
public JmsDestinationPollingSource(JmsTemplate jmsTemplate)
JmsDestinationPollingSource
public JmsDestinationPollingSource(javax.jms.ConnectionFactory connectionFactory,
javax.jms.Destination destination)
JmsDestinationPollingSource
public JmsDestinationPollingSource(javax.jms.ConnectionFactory connectionFactory,
String destinationName)
getComponentType
public String getComponentType()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this method to provide component type information.
- Specified by:
getComponentType
in interface NamedComponent
- Overrides:
getComponentType
in class IntegrationObjectSupport
setMessageSelector
public void setMessageSelector(String messageSelector)
- Specify a JMS Message Selector expression to use when receiving Messages.
receive
public Message<Object> receive()
- Will receive a JMS
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.
- Specified by:
receive
in interface MessageSource<Object>
Copyright © 2010. All Rights Reserved.