接口 MessageCreator
public interface MessageCreator
Creates a JMS message given aSession
.The
Session
typically is provided by an instance of theJmsTemplate
class.Implementations do not need to concern themselves with checked
JMSExceptions
(from the 'javax.jms
' package) that may be thrown from operations they attempt. TheJmsTemplate
will catch and handle theseJMSExceptions
appropriately.- 从以下版本开始:
- 1.1
- 作者:
- Mark Pollack
方法详细资料
createMessage
Message createMessage(Session session) throws JMSException
Create aMessage
to be sent.- 参数:
session
- the JMSSession
to be used to create theMessage
(nevernull
)- 返回:
- the
Message
to be sent - 抛出:
JMSException
- if thrown by JMS API methods