initializeForPut

initializeForPut();

The initializeForPut method of the JadeGenericMessage class initializes an existing message object so that a new message can be built and then added to a queue. The initialization sets the values of message properties to default values, sets the values of user properties to null, and sets the message body to empty.

When this method is called, an incomplete message, including any segments that have already been sent, is discarded. This method must be called before calling the putMessage method of the JadeGenericQueue class.

The initializeForPut method is implicitly called when a message is created by calling the createMessage method of the JadeGenericQueue class with the forPUT parameter set to true.