Interface WmMessageFactory

  • All Known Implementing Classes:
    WmMessageFactoryImpl

    public interface WmMessageFactory
    The set of methods to create JMS messages inside of a WmMarshalIn method.
    It is not allowed to use the standard JMS procdure of using the message creation methods on javax.jms.Session.
    • Method Detail

      • createBytesMessage

        WmBytesMessage createBytesMessage()
                                   throws javax.jms.JMSException
        Creates a BytesMessage for use by WmMarshalIn implementors.
        Returns:
        a new BytesMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createMapMessage

        WmMapMessage createMapMessage()
                               throws javax.jms.JMSException
        Creates a MapMessage for use by WmMarshalIn implementors.
        Returns:
        a new MapMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createMessage

        WmMessage createMessage()
                         throws javax.jms.JMSException
        Creates a Message for use by WmMarshalIn implementors.
        Returns:
        a new Message that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createObjectMessage

        WmObjectMessage createObjectMessage()
                                     throws javax.jms.JMSException
        Creates a ObjectMessage for use by WmMarshalIn implementors.
        Returns:
        a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createObjectMessage

        WmObjectMessage createObjectMessage​(java.io.Serializable object)
                                     throws javax.jms.JMSException
        Creates a ObjectMessage for use by WmMarshalIn implementors.
        Parameters:
        object - the object to use to initialize this message
        Returns:
        a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createStreamMessage

        WmStreamMessage createStreamMessage()
                                     throws javax.jms.JMSException
        Creates a StreamMessage for use by WmMarshalIn implementors.
        Returns:
        a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createTextMessage

        WmTextMessage createTextMessage()
                                 throws javax.jms.JMSException
        Creates a TextMessage for use by WmMarshalIn implementors.
        Returns:
        a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException
      • createTextMessage

        WmTextMessage createTextMessage​(java.lang.String text)
                                 throws javax.jms.JMSException
        Creates a TextMessage for use by WmMarshalIn implementors.
        Parameters:
        text - the string used to initialize this message
        Returns:
        a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
        Throws:
        javax.jms.JMSException