org.springframework.integration.jms
Class JmsSendingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.jms.JmsSendingMessageHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, NamedComponent, Orderable, MessageHandler, TrackableComponent
public class JmsSendingMessageHandler
- extends AbstractMessageHandler
A MessageConsumer that sends the converted Message payload within a JMS Message.
- Author:
- Mark Fisher, Oleg Zhurakousky
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JmsSendingMessageHandler
public JmsSendingMessageHandler(org.springframework.jms.core.JmsTemplate jmsTemplate)
setDestination
public void setDestination(javax.jms.Destination destination)
setDestinationName
public void setDestinationName(java.lang.String destinationName)
setDestinationExpression
public void setDestinationExpression(org.springframework.expression.Expression destinationExpression)
setHeaderMapper
public void setHeaderMapper(JmsHeaderMapper headerMapper)
setExtractPayload
public void setExtractPayload(boolean extractPayload)
- Specify whether the payload should be extracted from each integration
Message to be used as the JMS Message body.
The default value is true
. To force passing of the full
Spring Integration Message instead, set this to false
.
getComponentType
public java.lang.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 AbstractMessageHandler
onInit
protected void onInit()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class IntegrationObjectSupport
handleMessageInternal
protected void handleMessageInternal(Message<?> message)
throws java.lang.Exception
- Specified by:
handleMessageInternal
in class AbstractMessageHandler
- Throws:
java.lang.Exception