Class JmsDestinationPollingSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Object>
org.springframework.integration.jms.JmsDestinationPollingSource
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- MessageSource<Object>,- IntegrationPattern,- NamedComponent,- IntegrationInboundManagement,- IntegrationManagement
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, Artem Bilan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Objectprotected voidonInit()voidsetDestination(Destination destination) voidsetDestinationName(String destinationName) voidsetExtractPayload(boolean extractPayload) The flag to indicate if we should extractbodyfrom JMS Message, or use the received JMS Message asMessagepayload.voidsetHeaderMapper(JmsHeaderMapper headerMapper) voidsetMessageSelector(String messageSelector) Specify a JMS Message Selector expression to use when receiving Messages.voidsetSessionAcknowledgeMode(String sessionAcknowledgeMode) Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSourcebuildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionServiceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSourcegetIntegrationPatternType
- 
Constructor Details- 
JmsDestinationPollingSource
 
- 
- 
Method Details- 
setDestination
- 
setDestinationName
- 
setExtractPayloadpublic void setExtractPayload(boolean extractPayload) The flag to indicate if we should extractbodyfrom JMS Message, or use the received JMS Message asMessagepayload.- Parameters:
- extractPayload- the boolean flag. Defaults to- true.
- Since:
- 3.0.7
 
- 
getComponentType
- 
setMessageSelectorSpecify a JMS Message Selector expression to use when receiving Messages.- Parameters:
- messageSelector- The message selector.
 
- 
setHeaderMapper
- 
setSessionAcknowledgeMode
- 
onInitprotected void onInit()- Overrides:
- onInitin class- AbstractExpressionEvaluator
 
- 
doReceiveWill receive a JMSMessageconverting and returning it as a Spring IntegrationMessage. This method will also use the currentJmsHeaderMapperinstance to map JMS properties to the MessageHeaders.- Specified by:
- doReceivein class- AbstractMessageSource<Object>
- Returns:
- The value returned.
 
 
-