Program Control Flow for Outbound Marshalling
The program control flow for an outbound marshalling object is as follows:
1. Consult the userData object for any context information that may be needed.
2. Create a Broker event using the constructors for BrokerEvent. The BrokerClient parameter should be null.
3. Iterate over the fields and properties of the JMS message and add them as desired to the newly created BrokerEvent. It is possible to use structures and sequences as needed.
4. Create a WmBrokerEventWrapper object using the WmBrokerEventWrapper.create() method.
5. If the event is to be delivered, use the setDestinationId() method of the WmBrokerEventWrapper class to specify the Broker client.