public class JmsSendingMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
Constructor and Description |
---|
JmsSendingMessageHandler(org.springframework.jms.core.JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType() |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
protected void |
onInit() |
void |
setDestination(javax.jms.Destination destination) |
void |
setDestinationExpression(org.springframework.expression.Expression destinationExpression) |
void |
setDestinationName(java.lang.String destinationName) |
void |
setExtractPayload(boolean extractPayload)
Specify whether the payload should be extracted from each integration
Message to be used as the JMS Message body.
|
void |
setHeaderMapper(JmsHeaderMapper headerMapper) |
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JmsSendingMessageHandler(org.springframework.jms.core.JmsTemplate jmsTemplate)
public void setDestination(javax.jms.Destination destination)
public void setDestinationName(java.lang.String destinationName)
public void setDestinationExpression(org.springframework.expression.Expression destinationExpression)
public void setHeaderMapper(JmsHeaderMapper headerMapper)
public void setExtractPayload(boolean extractPayload)
The default value is true
. To force passing of the full
Spring Integration Message instead, set this to false
.
extractPayload
- true to extract the payload.public java.lang.String getComponentType()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.handler.AbstractMessageHandler
protected void onInit()
onInit
in class org.springframework.integration.context.IntegrationObjectSupport
protected void handleMessageInternal(org.springframework.messaging.Message<?> message) throws java.lang.Exception
handleMessageInternal
in class org.springframework.integration.handler.AbstractMessageHandler
java.lang.Exception