Package org.mule.jms.commons.api.message
Class JmsMessageFactory
java.lang.Object
org.mule.jms.commons.api.message.JmsMessageFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.jms.Messagebuild(JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, jakarta.jms.Session session, JmsConfig<?, ?> config, JmsMessageBuilder<?> messageBuilder) Creates aMessagebased on the provided configurations
-
Field Details
-
BODY_CONTENT_TYPE_JMS_PROPERTY
- See Also:
-
BODY_ENCODING_JMS_PROPERTY
- See Also:
-
-
Constructor Details
-
JmsMessageFactory
public JmsMessageFactory()
-
-
Method Details
-
build
public static jakarta.jms.Message build(JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, jakarta.jms.Session session, JmsConfig<?, ?> config, JmsMessageBuilder<?> messageBuilder) throws jakarta.jms.JMSException, IOExceptionCreates aMessagebased on the provided configurations- Parameters:
jmsSupport- theJmsSupportused to create the JMSReplyToDestinationoutboundCorrelationStrategy- the correlationId handling strategycorrelationInfo- the correlation information for the current messagesession- the currentSessionconfig- the currentDefaultJmsProducerConfig- Returns:
- the
Messagecreated by the user - Throws:
jakarta.jms.JMSException- if an error occursIOException
-