Apache CXF API

org.apache.cxf.transport.jms.util
Class JMSMessageConverter

java.lang.Object
  extended by org.apache.cxf.transport.jms.util.JMSMessageConverter

public class JMSMessageConverter
extends Object

Converts jms messages to Objects and vice a versa.

String <=> TextMessage byte[] <=> BytesMessage Serializable object <=> ObjectMessage


Constructor Summary
JMSMessageConverter()
           
 
Method Summary
 Object fromMessage(javax.jms.Message message)
           
 javax.jms.Message toMessage(Object object, javax.jms.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSMessageConverter

public JMSMessageConverter()
Method Detail

toMessage

public javax.jms.Message toMessage(Object object,
                                   javax.jms.Session session)
                            throws javax.jms.JMSException
Throws:
javax.jms.JMSException

fromMessage

public Object fromMessage(javax.jms.Message message)
                   throws javax.jms.JMSException
Throws:
javax.jms.JMSException

Apache CXF API

Apache CXF