Interface JmsMesageConvertor

All Known Implementing Classes:
SimpleJmsMessageConvertor

public interface JmsMesageConvertor
Converts Message from one JMS to another
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.jms.Message
    convert(jakarta.jms.Message message)
    Convert a foreign JMS Message to a native ActiveMQ Message
    jakarta.jms.Message
    convert(jakarta.jms.Message message, jakarta.jms.Destination replyTo)
    Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound.
    void
    setConnection(jakarta.jms.Connection connection)
     
  • Method Details

    • convert

      jakarta.jms.Message convert(jakarta.jms.Message message) throws jakarta.jms.JMSException
      Convert a foreign JMS Message to a native ActiveMQ Message
      Parameters:
      message - The target message to convert to a native ActiveMQ message
      Returns:
      the converted message
      Throws:
      jakarta.jms.JMSException
    • convert

      jakarta.jms.Message convert(jakarta.jms.Message message, jakarta.jms.Destination replyTo) throws jakarta.jms.JMSException
      Convert a foreign JMS Message to a native ActiveMQ Message - Inbound or visa-versa outbound. If the replyTo Destination instance is not null then the Message is configured with the given replyTo value.
      Parameters:
      message - The target message to convert to a native ActiveMQ message
      replyTo - The replyTo Destination to set on the converted Message.
      Returns:
      the converted message
      Throws:
      jakarta.jms.JMSException
    • setConnection

      void setConnection(jakarta.jms.Connection connection)