|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageCreator
The callback interface used by JmsTemplate. This interface creates a JMS message given a session, provided by the JmsTemplate.
Implementations do not need to concern themselves with checked JMSException (from javax.jms) that may be thrown from operations they attempt. The JmsTemplate will catch and handle these JMSExceptions appropriately.
If extra parameters need to be set, such as the delivery mode, priority or time to live, override any of the getters with your own implementation.
Method Summary | |
---|---|
Message |
createMessage(Session session)
Implement this method to return a message to be sent. |
Method Detail |
---|
Message createMessage(Session session) throws JMSException
session
- the JMS session
JMSException
- if thrown by JMS API methods
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |