Interface WmMarshalIn


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

      • mapMessageFromEvent

        WmMessage mapMessageFromEvent​(java.lang.Object event,
                                      java.lang.Object userData,
                                      WmMessageFactory msgFactory)
                               throws java.lang.Exception
        Maps a WmBrokerEvent to a JMS Message.
        Parameters:
        event - the BrokerEvent that was received
        userData - an Object set when establishing the marshalling routine
        msgFactory - the factory used to create the Message
        Returns:
        the Message that represents the event. If null is returned, the message is derived from the event in the standard manner.
        Throws:
        java.lang.Exception