Package org.springframework.jms.support.converter

Examples of org.springframework.jms.support.converter.MessageConverter


   * @return the JMS <code>Message</code> (never <code>null</code>)
   * @throws JMSException if thrown by JMS API methods
   * @see #setMessageConverter
   */
  protected Message buildMessage(Session session, Object result) throws JMSException {
    MessageConverter converter = getMessageConverter();
    if (converter != null) {
      return converter.toMessage(result, session);
    }
    else {
      if (!(result instanceof Message)) {
        throw new MessageConversionException(
            "No MessageConverter specified - cannot handle message [" + result + "]");
View Full Code Here

TOP

Related Classes of org.springframework.jms.support.converter.MessageConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.