Interface JmsMessageCreator<T>


public interface JmsMessageCreator<T>
A creator of a JMS Message from the raw event.
Author:
Filip Hrisafov
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.jms.Message
    toMessage(T event, Map<String,Object> headerMap, jakarta.jms.Session session)
    Convert the raw event to a JMS Message using the supplied session to create the message object.
  • Method Details

    • toMessage

      jakarta.jms.Message toMessage(T event, Map<String,Object> headerMap, jakarta.jms.Session session) throws jakarta.jms.JMSException
      Convert the raw event to a JMS Message using the supplied session to create the message object.
      Parameters:
      event - the event to convert
      headerMap - the headers for the JMS message
      session - the Session to use for creating a JMS Message
      Returns:
      the JMS Message
      Throws:
      jakarta.jms.JMSException - if thrown by JMS API methods