Interface WmMarshalOut


  • public interface WmMarshalOut
    Interface that is implemented by outbound marshallers to translate a JMS Message to a BrokerEvent
    The marshaller is established by using the WmConnectionFactory.setMarshalOut method.
    • Method Detail

      • mapMessageToEvent

        WmBrokerEventWrapper mapMessageToEvent​(javax.jms.Message msg,
                                               java.lang.Object userData)
                                        throws java.lang.Exception
        Maps a JMS Message to a WmBrokerEvent for transport through the Broker.
        Parameters:
        msg - the JMS Message that is to be sent
        userData - an Object set when establishing the marshalling routine
        Returns:
        a WmBrokerEventWrapper object that contains the event to be sent. If null is returned, the original message will be sent
        Throws:
        java.lang.Exception