Class MessageBuilder

  • All Implemented Interfaces:
    org.springframework.jms.core.MessageCreator

    public class MessageBuilder
    extends Object
    implements org.springframework.jms.core.MessageCreator
    Message creator with correlation id
    • Constructor Detail

      • MessageBuilder

        public MessageBuilder​(org.springframework.web.context.WebApplicationContext context,
                              XStreamSerializer serializer)
        Constructor
        Parameters:
        context - Application context
        serializer - XML Serializer
    • Method Detail

      • getMessage

        public javax.jms.Message getMessage()
        Get message
        Returns:
        Message
      • createMessage

        public javax.jms.Message createMessage​(javax.jms.Session session)
                                        throws javax.jms.JMSException
        Specified by:
        createMessage in interface org.springframework.jms.core.MessageCreator
        Throws:
        javax.jms.JMSException