|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageConverter
Strategy interface that specifies a MessageConverter between Java objects and JMS messages.
Method Summary | |
---|---|
Object |
fromMessage(Message message)
Convert from a JMS Message to a Java object. |
Message |
toMessage(Object object,
Session session)
Convert a Java object to a JMS Message using the supplied session to create the message object. |
Method Detail |
---|
Message toMessage(Object object, Session session) throws JMSException, MessageConversionException
object
- the object to convertsession
- the Session to use for creating a JMS Message
JMSException
- if thrown by JMS API methods
MessageConversionException
- in case of conversion failureObject fromMessage(Message message) throws JMSException, MessageConversionException
message
- the message to convert
MessageConversionException
- in case of conversion failure
JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |