Interface JmsMessageCreator<T>
public interface JmsMessageCreator<T>
A creator of a JMS
Message
from the raw event.- Author:
- Filip Hrisafov
-
Method Summary
-
Method Details
-
toMessage
jakarta.jms.Message toMessage(T event, Map<String, Object> headerMap, jakarta.jms.Session session) throws jakarta.jms.JMSExceptionConvert the raw event to a JMS Message using the supplied session to create the message object.- Parameters:
event
- the event to convertheaderMap
- the headers for the JMS messagesession
- the Session to use for creating a JMS Message- Returns:
- the JMS Message
- Throws:
jakarta.jms.JMSException
- if thrown by JMS API methods
-