Class JmsSendingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class JmsSendingMessageHandler extends AbstractMessageHandler
A MessageConsumer that sends the converted Message payload within a JMS Message.
Author:
Mark Fisher, Oleg Zhurakousky, Artem Bilan
  • Constructor Details

    • JmsSendingMessageHandler

      public JmsSendingMessageHandler(JmsTemplate jmsTemplate)
  • Method Details

    • setDestination

      public void setDestination(Destination destination)
    • setDestinationName

      public void setDestinationName(String destinationName)
    • setDestinationExpression

      public void setDestinationExpression(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.

      Parameters:
      extractPayload - true to extract the payload.
    • setDeliveryModeExpressionString

      public void setDeliveryModeExpressionString(String deliveryModeExpression)
      Specify a SpEL expression to evaluate a deliveryMode for the JMS message to send. This option is applied only of QoS is enabled on the JmsTemplate.
      Parameters:
      deliveryModeExpression - to use
      Since:
      5.1
      See Also:
    • setDeliveryModeExpression

      public void setDeliveryModeExpression(Expression deliveryModeExpression)
      Specify a SpEL expression to evaluate a deliveryMode for the JMS message to send. This option is applied only of QoS is enabled on the JmsTemplate.
      Parameters:
      deliveryModeExpression - to use
      Since:
      5.1
    • setTimeToLiveExpressionString

      public void setTimeToLiveExpressionString(String timeToLiveExpression)
      Specify a SpEL expression to evaluate a timeToLive for the JMS message to send.
      Parameters:
      timeToLiveExpression - to use
      Since:
      5.1
      See Also:
    • setTimeToLiveExpression

      public void setTimeToLiveExpression(Expression timeToLiveExpression)
      Specify a SpEL expression to evaluate a timeToLive for the JMS message to send.
      Parameters:
      timeToLiveExpression - to use
      Since:
      5.1
    • getComponentType

      public 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 MessageHandlerSupport
    • 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)
      Specified by:
      handleMessageInternal in class AbstractMessageHandler