public class JmsSendingMessageHandler extends AbstractMessageHandler
logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
JmsSendingMessageHandler(JmsTemplate jmsTemplate) |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(Message<?> message) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setDestination(Destination destination) |
void |
setDestinationExpression(Expression destinationExpression) |
void |
setDestinationName(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, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public JmsSendingMessageHandler(JmsTemplate jmsTemplate)
public void setDestination(Destination destination)
public void setDestinationName(String destinationName)
public void setDestinationExpression(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 String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageHandler
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void handleMessageInternal(Message<?> message) throws Exception
handleMessageInternal
in class AbstractMessageHandler
Exception