Spring Integration

org.springframework.integration.jms
Class JmsSendingMessageHandler

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by 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

Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
JmsSendingMessageHandler(org.springframework.jms.core.JmsTemplate jmsTemplate)
           
 
Method Summary
 java.lang.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(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)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder, setShouldTrack
 
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
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

JmsSendingMessageHandler

public JmsSendingMessageHandler(org.springframework.jms.core.JmsTemplate jmsTemplate)
Method Detail

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

Spring Integration