public interface MessageCreator
Session
.
The Session
typically is provided by an instance
of the JmsTemplate
class.
Implementations do not need to concern themselves with
checked JMSExceptions
(from the 'javax.jms
'
package) that may be thrown from operations they attempt. The
JmsTemplate
will catch and handle these
JMSExceptions
appropriately.
Modifier and Type | Method and Description |
---|---|
javax.jms.Message |
createMessage(javax.jms.Session session)
Create a
Message to be sent. |
javax.jms.Message createMessage(javax.jms.Session session) throws javax.jms.JMSException
Message
to be sent.session
- the JMS Session
to be used to create the
Message
(never null
)Message
to be sentjavax.jms.JMSException
- if thrown by JMS API methodsCopyright © 2015. All rights reserved.