If the message does not pass validation it is handled as a NAK, the associated recourse action is taken, and the message is archived in the error queue.
If the message is a NAK, the associated recourse action is taken, and the message is archived in the error queue, along with the NAK message, as a JMS property
If the message is an ACK and passes validation, the message is sent on to the journalMessage method.
If the ACK message validates, the HL7 V3 message and ACK message are sent to the JMS journal Destination. If the message fails to journal, the associated recourse action is taken.
If sequencing numbering is enabled for Deferred Mode, the processAckNakSequenceNumbering method calculates the next sequence number and stores the number in the sequence number file, calling updateSequenceNumberFile to persist the next sequence number.