|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
javax.jms.Message |
createMessage(javax.jms.Session session)
Implement this method to return a message to be sent. |
Method Detail |
public javax.jms.Message createMessage(javax.jms.Session session) throws javax.jms.JMSException
session
- the JMS session
javax.jms.JMSException
- if thrown by JMS API methods
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |